Search completed in 1.14 seconds.
562 results for "computed value":
Your results are loading. Please wait...
Computed value - CSS: Cascading Style Sheets
The computed value of a CSS property is the value that is transferred from parent to child during inheritance. It is calculated from the specified value by: Handling the special values inherit, initial, unset, and revert. Doing the computation needed to reach the value described in the "Computed value" line in the property's definition table. The computation needed to reach a property's computed value typically involves converting relative values (such as those in em units or percentages) to absolute values. For example, if an element has specified values font-size: 16px and padding-top: 2em, then the computed value of padding-top is 32px (double the font size). However, for some properties (those where percentages are relative to something that may require layout to determine, such as width, ma...
...s) to absolute values. For example, if an element has specified values font-size: 16px and padding-top: 2em, then the computed value of padding-top is 32px (double the font size). However, for some properties (those where percentages are relative to something that may require layout to determine, such as width, margin-right, text-indent, and top), percentage-specified values turn into percentage-computed values. Additionally, unitless numbers specified on the line-height property become the computed value, as specified. The relative values that remain in the computed value become absolute when the used value is determined. Note: The getComputedStyle() DOM API returns the resolved value, which may either be the computed value or the used value, depending on the property. Specifications Spe...
... Note: The getComputedStyle() DOM API returns the resolved value, which may either be the computed value or the used value, depending on the property. Specifications Specification Status Comment CSS Level 2 (Revision 2)The definition of 'computed-value' in that specification. Working Draft No change. CSS Level 2 (Revision 1)The definition of 'computed value' in that specification. Recommendation Initial definition. ...
Index - Web APIs
Web › API › Index
alue.y API, CSS Typed Object Model API, CSSPositionValue, Experimental, Houdini, Property, Reference, y The y property of the CSSPositionValue interface returns the item's position along the vertical axis. 439 CSSPrimitiveValue API, CSSPrimitiveValue, Interface, Reference The CSSPrimitiveValue interface derives from the CSSValue interface and represents the current computed value of a CSS property. 440 CSSPrimitiveValue.getCounterValue() API, CSSPrimitiveValue, Method, NeedsExample, getCounterValue The getCounterValue() method of the CSSPrimitiveValue interface is used to get the counter value. If this CSS value doesn't contain a counter value, a DOMException is raised. Modification to the corresponding style property can be achieved using the Counter...
...Object Model API, CSSUnparsedValue, Constructor, Experimental, Houdini, Method, NeedsExample, Reference, values() The CSSUnparsedValue.values() method returns a new Array Iterator object that contains the values for each index in the CSSUnparsedValue object. 492 CSSValue API, CSSValue, DOM, Interface, NeedsExample, Reference The CSSValue interface represents the current computed value of a CSS property. 493 CSSValue.cssText API, CSSValue, Property, Reference, cssText The cssText property of the CSSValue interface represents the current computed CSS property value. 494 CSSValue.cssValueType API, CSSValue, Property, Read-only, Reference, cssValueType The cssValueType read-only property of the CSSValue interface represents the type of the...
... SVGGeometryElement.getPointAtLength() API, DOM, Method, NeedsExample, Reference, SVG, SVG DOM The SVGGeometryElement.getPointAtLength() method returns the point at a given distance along the path. 3777 SVGGeometryElement.getTotalLength() API, DOM, Method, NeedsExample, Reference, SVG, SVG DOM The SVGGeometryElement.getTotalLength() method returns the user agent's computed value for the total length of the path in user units. 3778 SVGGeometryElement.isPointInFill() API, DOM, Method, Reference, SVG, SVG DOM The SVGGeometryElement.isPointInFill() method determines whether a given point is within the fill shape of an element. Normal hit testing rules apply; the value of the pointer-events property on the element determines whether a point is considered ...
...And 2 more matches
Used value - CSS: Cascading Style Sheets
The used value of a CSS property is its value after all calculations have been performed on the computed value. After the user agent has finished its calculations, every CSS property has a used value. The used values of dimensions (e.g., width, line-height) are in pixels. The used values of shorthand properties (e.g., background) are consistent with those of their component properties (e.g., background-color or background-size) and with position and float. Note: The getComputedStyle() DOM API returns the resolved value, which may either be the computed value or the used value, depending on the property. Example This example computes and displays the used width value of three elements (updates on resize): HTML <div id="no-width"> <p>No explicit width.</p> <p class="show-used-width">..</p> ...
...The ...
...The following are the CSS 2.1 properties ...
...And 2 more matches
Adding a new CSS property
See the Gecko Overview for more information about the style system. This document assumes that you have a specifcation for the property available. Issues about how to write such a specification (including things such as whether it is appropriate to use prefixes or when properties should be inherited by default) are not covered here. ...
...te test entry to property_database.js. See the documentation at the top of the file and the other entries for examples. This will cause tests of your new property to be added to many of the mochitests in layout/style/test, which can be run with the command "./mach mochitest -f plain layout/style/". Then, unless you're implementing a shorthand property, you need to decide which style struct the computed value of the property should go in. (Again, see the Gecko Overview for more information.) It should generally be grouped with related properties. Remember that each style struct contains only properties that inherit by default or only properties that do not. (Which set the property is in is given in the specification, which says "Inherited: yes" or "Inherited: no" in the property's definition.) Al...
...Props::IsEnabled(), which is faster than calling into the preferences code For further understanding of how the parsing code works, you should read and understand the code in nsCSSParser.cpp. Computed Style When adding a new longhand property, you also need to implement the computed style side of things. (None of this applies to shorthand properties.) Start by reading and understanding the "Computed Value:" line in the specification's definition of the property, and any associated prose. This line describes the conceptual representation (but not syntax) of the computed value of the property. The data structures in Gecko that store the computed value must correspond to this concept, or inheritance won't work as described by the specification. So first, you need to add a member variable (or varia...
...rd if you only need a single type that nsStyleCoord provides. The default constructor must initialize the variable to match the initial value of the property, as described in the "Initial Value:" line in the specification's definition of the property. You then need to add code to nsRuleNode::Compute*Data (where the * is for the style struct) to transform a specified value of the property into a computed value of the property. This needs to match the specification's definition of the "Computed value" (and, for the 'initial' value, it's definition of "Initial Value"). For examples of how to write this computation code, see other examples in nsRuleNode.cpp. In any case where the computation you do might vary between elements that match the same list of style rules, you need to set the canStoreInRuleTr...
border-style - CSS: Cascading Style Sheets
rd to the bottom. When four values are specified, the styles apply to the top, right, bottom, and left in that order (clockwise). Each value is a keyword chosen from the list below. Values <line-style> Describes the style of the border. It can have the following values: none Like the hidden keyword, displays no border. ...
...In the case of table cell and border collapsing, the hidden value has the highest priority: if any other conflicting border is set, it won't be displayed. dotted Displays a series of rounded dots. ...
...n if the specified value is something else. In the case of table cell and border collapsing, the hidden value has the highest priority: if any other conflicting border is set, it won't be displayed. dotted Displays a series of rounded dots. The spacing of the dots is not defined by the specification and is implementation-specific. The radius of the dots is half the computed value of the same side's border-width. dashed Displays a series of short square-ended dashes or line segments. The exact size and length of the segments are not defined by the specification and are implementation-specific. solid Displays a single, straight, solid line. double Displays two straight lines that...
...ppear embossed. It is the opposite of inset. When applied to a table cell with border-collapse set to collapsed, this value behaves like ridge. Formal definition Initial valueas each of the properties of the shorthand:border-top-style: noneborder-right-style: noneborder-bottom-style: noneborder-left-style: noneApplies toall elements. ...
float - CSS: Cascading Style Sheets
Web › CSS › float
e element is removed from the normal flow of the page, though still remaining a part of the flow (in contrast to absolute positioning). The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
... contrast to absolute positioning). The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. A floating element is one where the computed value of float is not none. ...
...stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. A floating element is one where the computed value of float is not none. ...
...at on the start side of its containing block. That is the left side with ltr scripts, and the right side with rtl scripts. inline-end The element must float on the end side of its containing block. That is the right side with ltr scripts, and the left side with rtl scripts. Formal definition Initial valuenoneApplies toall elements, but has no effect if the value of display is none.InheritednoComputed valueas specifiedAnimation typediscrete Formal syntax left | right | none | inline-start | inline-end Examples How floated elements are positioned As mentioned above, when an element is floated, it is taken out of the normal flow of the document (though still remaining part of it). It is shifted to the left, or right, until it touches the edge of its containing box, or another floated element. In ...
border-image - CSS: Cascading Style Sheets
ce | slice | repeat */ border-image: url("/images/border.png") 27 space; /* source | slice | width */ border-image: linear-gradient(red, blue) 27 / 35px; /* source | slice | width | outset | repeat */ border-image: url("/images/border.png") 27 23 / 50px 30px / 1rem round space; The border-image property may be specified with anywhere from one to five of the values listed below. Note: If the computed value of border-image-source is none, or if the image cannot be displayed, the border-style will be displayed instead. Values <'border-image-source'> The source image. See border-image-source. <'border-image-slice'> The dimensions for slicing the source image into regions. Up to four values may be specified. See border-image-slice. <'border-image-width'> The width of the border image. Up to f...
...slice: 100%border-image-width: 1border-image-outset: 0border-image-repeat: stretchApplies toall elements, except internal table elements when border-collapse is collapse. ...
...slice: 100%border-image-width: 1border-image-outset: 0border-image-repeat: stretchApplies toall elements, except internal table elements when border-collapse is collapse. ...
box-lines - CSS: Cascading Style Sheets
Web › CSS › box-lines
should stay on that line and overflow out of the box. The later lines are placed below the earlier lines in normal direction boxes and above in reverse direction boxes. The height of a line is the height of the largest child in that line. No additional space appears between the lines apart from the margins on the largest elements in each line. ...
...Each line computes flexes independently, so only elements on that line are considered when evaluating box-flex and box-flex-groups. ...
...ing of elements in a line, as specified by the box-pack property, is also computed independently for each line. Syntax The box-lines property is specified as one of the keyword values listed below. Values single Box elements lay out in a single row or column. multiple Box elements layout in multiple rows or columns. Formal definition Initial valuesingleApplies tobox elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax single | multiple Examples Simple usage example In the original version of the spec, box-lines allowed you to specify that you wanted your flex container's children to wrap onto multiple lines. This was only supported in WebKit-based browsers, with a prefix. div { display: box; box-orient: horizontal; box-lines: multiple; } The modern f...
line-height - CSS: Cascading Style Sheets
The line-height property is specified as any one of the following: a <number> a <length> a <percentage> the keyword normal. Values normal Depends on the user agent. Desktop browsers (including Firefox) use a default value of roughly 1.2, depending on the element's font-family. <number> (unitless) The used value is this unitless <number> multiplied by the element's own font size. ...
...Percentage values may produce unexpected results (see the second example below). -moz-block-height Sets the line height to the content height of the current block. Accessibility concerns Use a minimum value of 1.5 for line-height for main paragraph content. ...
..., as well as people with cognitive concerns such as Dyslexia. If the page is zoomed to increase the text size, using a unitless value ensures that the line height will scale proportionately. W3C Understanding WCAG 2.1 Formal definition Initial valuenormalApplies toall elements. ...
-ms-wrap-flow - Archive of obsolete content
both Inline flow content can flow on all sides of the exclusion. start Inline flow content can wrap on the start edge of the exclusion area but must leave empty the area after the end edge of the exclusion area. ...
...mpty the other side of the exclusion. clear Inline flow content can only wrap on top and bottom of the exclusion and must leave empty the areas to the start and end edges of the exclusion box. Formal syntax auto | both | start | end | maximum | clear Specifications Not part of any specification. Remarks The -ms-wrap-flow property makes an element an exclusion element when it has a computed value other than auto. This property specifies that the exclusion element (the exclusion) can be positioned in various ways, and that inline content will wrap around the exclusion in a way similar to how it wraps around floated elements. When the -ms-wrap-flow property's computed value is auto, the element does not become an exclusion element unless its float property's computed value is not none. In ...
Mozilla Style System
The Style System is the module of Mozilla's code responsible for the loading and parsing of CSS style sheets, and the computation of computed values for all CSS properties. The handling of those computed values is the responsibility of other parts of the code. Architecture The style system is split in half rather neatly. In one half (the backend) are the sources of specified style data, and in the other half (the frontend) is the code that turns the specified values into computed values. The barrier between these two halves consists of three abstract interfaces, plus some smaller structures associated with some methods on each: nsIStyleSheet nsIStyleSheet represents what one would think of as a style sheet: the in-memory representation of a CSS file or other source of style data. Some sty...
... Mozilla consists of a single nsStyleSet object and many nsStyleContext objects, each of which holds the computed style for an element, pseudo-element, or text node. The style set provides the API managing the rule processors and for creating style contexts. The style contexts then provide the API for computed style data by allowing retrieval of a set of style structs, each of which contains the computed values of a set of CSS properties. Style structs The style structs are a set of structs, each of which holds computed values a group of properties. They all have names beginning with nsStyle*, and they should not be confused with the CSS structs (nsCSS*), which hold specified values. The grouping of properties into structs follows two rules: any properties in the same style struct must also be in...
Mozilla
cessible; the documents below cover the ways in which we do so. Add-ons Add-ons allow developers to extend and modify the functionality of Firefox. Adding a new CSS property This page describes how to add a new CSS property to the style system. The style system is the part of the code in Gecko that is responsible for producing a computed value for every property for every element. See the Gecko Overview for more information about the style system. Adding a new event This draft document covers how to add a new event to the Mozilla (Firefox) source code. Adding a new word to the en-US dictionary Occasionally bugs are filed pointing out situations where perfe...
...s containing Mozilla project code. Mozilla Quirks Mode Behavior The following is a rough list of the differences that exist between Mozilla's standards mode and quirks mode behavior. Mozilla Style System The Style System is the module of Mozilla's code responsible for the loading and parsing of CSS style sheets, and the computation of computed values for all CSS properties. The handling of those computed values is the responsibility of other parts of the code. Mozilla Style System Documentation See also the style techtalk for more complete although less detailed documentation. Mozilla SVG Project Since you have come this far, you probably already know that SVG stands f...
Using the CSS Typed Object Model - Web APIs
d <dd> for each property and value respectively. In browsers that support computedStyleMap(), you'll see a list of all the CSS properties and values. In other browsers, you'll just see a link. Did you realize how many default CSS properties a link had? Update the JavaScript on line 2 to select the <p> rather than the <a>. You'll notice a difference in the margin-top and margin-bottom default computed values. .get() method / custom properties Let's update our example to only retrieve a few properties and values. Let's start by adding some CSS to our example, including a custom property and an inhertable property: p { font-weight: bold; } a { --color: red; color: var(--color); } Instead of getting all the properties, we create an array of properties of interest and use the StylePropertyM...
...ration-color, column-rule-color, etc.) would return rgb(255, 0, 0). The link has inherited font-weight: bold; from the paragraph's styles, listing it as font-weight: 700. Custom properties, like our --color: red , are properties. As such, they are accessible via get(). You'll note that custom properties retain the value as written in the stylesheet, whereas computed styles will be listed as the computed value -- color was listed as an rgb() value and the font-weight returned was 700 even though we use a named color and and the bold keyword. CSSUnitValue and CSSKeywordValue The power of the CSS Typed OM is that values are separate from units; parsing and concatenating string values may become be a thing of the past. Every CSS property in a style map has a value. If the value is a keyword, the object ...
HTMLImageElement.x - Web APIs
In other words: it has either of those values set explicitly on it, or it has inherited it from a containing element, or by being located within a column described by either <col> or <colgroup>. ...
...nt's border box. The nearest root element is the outermost <html> element that contains the image. If the image is in an <iframe>, its x is relative to that frame. In the diagram below, the left border edge is the left edge of the blue padding area. So the value returned by x would be the distance from that point to the left edge of the content area. Note: The x property is only valid if the computed value of the image's display property is either table-column or table-column-group; in other words, either of those are set directly on the <img> or they're inherited from a containing element or by being located within a column described by either <col> or <colgroup>. Example The example below demonstrates the use of the HTMLImageElement properties x and y. HTML In this example, we see a table sh...
HTMLImageElement.y - Web APIs
In other words: it has either of those values set explicitly on it, or it has inherited it from a containing element, or by being located within a column described by either <col> or <colgroup>. ...
...ement's border box. The nearest root element is the outermost <html> element that contains the image. If the image is in an <iframe>, its y is relative to that frame. In the diagram below, the top border edge is the top edge of the blue padding area. So the value returned by y would be the distance from that point to the top edge of the content area. Note: The y property is only valid if the computed value of the image's display property is either table-column or table-column-group; in other words, either of those are set directly on the <img> or they're inherited from a containing element or by being located within a column described by either <col> or <colgroup>. Example The example below demonstrates the use of the HTMLImageElement properties x and y. HTML In this example, we see a table sh...
Window.getComputedStyle() - Web APIs
erty names. It is safest to query values with only longhand names like font-size. Shorthand names like font will not work with most browsers. CSS property values may be accessed using the getPropertyValue(propName) API or by indexing directly into the object such as obj['z-index'] or obj.zIndex. The values returned by getComputedStyle are resolved values. ...
...ty values may be accessed using the getPropertyValue(propName) API or by indexing directly into the object such as obj['z-index'] or obj.zIndex. The values returned by getComputedStyle are resolved values. These are usually the same as CSS 2.1's computed values, but for some older properties like width, height, or padding, they are instead the same as used values. Originally, CSS 2.0 defined the computed values as the "ready to be used" final values of properties after cascading and inheritance, but CSS 2.1 redefined them as pre-layout, and used values as post-layout. For CSS 2.0 properties, getComputedStyle returns the old meaning of computed values, now called used values. An example difference between pre- and post-layout values includes the resolution of percentages for width or height, as those wi...
-moz-user-focus - CSS: Cascading Style Sheets
rd values */ -moz-user-focus: normal; -moz-user-focus: ignore; /* Global values */ -moz-user-focus: inherit; -moz-user-focus: initial; -moz-user-focus: unset; By setting its value to ignore, you can disable focusing the element, which means that the user will not be able to activate the element. The element will be skipped in the tab sequence. Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Note: This property doesn't work for XUL <xul:textbox> elements, because the textbox itself never takes focus. Instead, XBL creates an anonymous HTML <input> element inside the textbox, and that element is what receives focus. You can stop the textbox from taking keyboard focus by setting its tab index to -1, and from taking mouse focus by preventing the default...
... taking mouse focus by preventing the default action of mousedown events. Syntax Values ignore The element does not accept the keyboard focus and will be skipped in the tab order. normal The element can accept the keyboard focus. select-after ? select-before ? select-menu ? select-same ? select-all ? none ? Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax ignore | normal | select-after | select-before | select-menu | select-same | select-all | none Examples HTML <input class="ignored" value="The user cannot focus on this element."> CSS .ignored { -moz-user-focus: ignore; } Specifications Not part of any standard. A similar property, user-focus, was proposed in early drafts of a predecesso...
-webkit-border-before - CSS: Cascading Style Sheets
mediumborder-bottom-width: mediumborder-left-width: mediumborder-style: as each of the properties of the shorthand:border-top-style: noneborder-right-style: noneborder-bottom-style: noneborder-left-style: nonecolor: Varies from one browser to anotherApplies toall elementsInheritedyesPercentagesas each of the properties of the shorthand:-webkit-border-before-width: logical-width of containing blockComputed valueas each of the properties of the shorthand:border-width: as each of the properties of the shorthand:border-bottom-width: the absolute length or 0 if border-bottom-style is none or hiddenborder-left-width: the absolute length or 0 if border-left-style is none or hiddenborder-right-width: the absolute length or 0 if border-right-style is none or hiddenborder-top-width: the absolute length or 0 if bo...
...If it isn't, it will be the rgb() corresponding one. The transparent keyword maps to rgba(0,0,0,0).Animation typediscrete Formal syntax <'border-width'> | <'border-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-...
-webkit-mask-position-x - CSS: Cascading Style Sheets
Percentages are calculated against the horizontal dimension of the box padding area. That means, a value of 0% means the left edge of the image is aligned with the box's left pad...
... That means, a value of 0% means the left edge of the image is aligned with the box's left padding edge and a value of 100% means the right edge of the image is aligned with the box's right padding edge. left Equivalent to 0%. center Equivalent to 50%. right Equivalent to 100%. ...
-webkit-mask-position-y - CSS: Cascading Style Sheets
Percentages are calculated against the vertical dimension of the box padding area. A value of 0% means the top edge of the image is aligned with the box's top padding edge and a va...
...adding area. A value of 0% means the top edge of the image is aligned with the box's top padding edge and a value of 100% means the bottom edge of the image is aligned with the box's bottom padding edge. top Equivalent to 0%. bottom Equivalent to 100%. center Equivalent to 50%. ...
align-content - CSS: Cascading Style Sheets
ignment container causing data loss, the item is instead aligned as if the alignment mode were start. unsafe Used alongside an alignment keyword. Regardless of the relative sizes of the item and alignment container and whether overflow which causes data loss might happen, the given alignment value is honored. ...
...nment Module Level 3The definition of 'align-content' in that specification. Working Draft Adds the [ first | last ]? baseline, start, end, left, right, unsafe | safe values. CSS Flexible Box Layout ModuleThe definition of 'align-content' in that specification. Candidate Recommendation Initial definition Initial valuenormalApplies tomulti-line flex containersInheritednoComputed valueas specifiedAnimation typediscrete ...
animation-fill-mode - CSS: Cascading Style Sheets
n-fill-mode: backwards; animation-fill-mode: both; /* Multiple animations */ animation-fill-mode: none, backwards; animation-fill-mode: both, forwards, none; Values none The animation will not apply any styles to the target when it's not executing. The element will instead be displayed using any other CSS rules applied to it. This is the default value. forwards The target will retain the computed values set by the last keyframe encountered during execution. The last keyframe depends on the value of animation-direction and animation-iteration-count: animation-direction animation-iteration-count last keyframe encountered normal even or odd 100% or to reverse even or odd 0% or from alternate even 0% or from ...
...s. Note: When you specify multiple comma-separated values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are. For more information, see Setting multiple animation property values. Formal definition Initial valuenoneApplies toall elements, ::before and ::after pseudo-elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <single-animation-fill-mode>#where <single-animation-fill-mode> = none | forwards | backwards | both Examples You can see the effect of animation-fill-mode in the following example. It demonstrates how, for an animation that runs for an infinite time, you can cause it to remain in its final state rather than reverting to the original state (whic...
background-clip - CSS: Cascading Style Sheets
n the border has transparent regions or partially opaque regions (due to border-style or border-image); otherwise, the border masks the difference. Note: Because the root element has a different background painting area, the background-clip property has no effect when specified on it. See "The backgrounds of special elements." Note: For documents whose root element is an HTML element: if the computed value of background-image on the root element is none and its background-color is transparent, user agents must instead propagate the computed values of the background properties from that element's first HTML <body> child element. The used values of that <body> element's background properties are their initial values, and the propagated values are treated as if they were specified on the root element.
... padding-box The background extends to the outside edge of the padding. No background is drawn beneath the border. content-box The background is painted within (clipped to) the content box. text The background is painted within (clipped to) the foreground text. Formal definition Initial valueborder-boxApplies toall elements. ...
block-size - CSS: Cascading Style Sheets
e: inherit; block-size: initial; block-size: unset; If the writing mode is vertically oriented, the value of block-size relates to the width of the element; otherwise, it relates to the height of the element. A related property is inline-size, which defines the other dimension of the element. ...
...alueautoApplies tosame as width and heightInheritednoPercentagesblock-size of containing blockComputed valuesame as width and heightAnimation typea length, percentage or calc(); Syntax Values The block-size property takes the same values as the width and height properties. ...
border-block-start-width - CSS: Cascading Style Sheets
tive-examples and send us a pull request. Syntax /* <'border-width'> values */ border-block-start-width: 5px; border-block-start-width: thick; Related properties are border-block-end-width, border-inline-start-width, and border-inline-end-width, which define the other border widths of the element. ...
...dths of the element. Initial valuemediumApplies toall elementsInheritednoPercentageslogical-width of containing blockComputed valueabsolute length; 0 if the border style is none or hiddenAnimation typea length Values <'border-width'> The width of the border. See border-width. ...
border-image-outset - CSS: Cascading Style Sheets
age outset as a multiple of the element's corresponding border-widths. For example, if an element has border-width: 1em 2px 0 1.5rem, and border-image-outset: 2, the final border-image-outset would be calculated as 2em 4px 0 3rem. Formal definition Initial value0Applies toall elements, except internal table elements when border-collapse is collapse. ...
...border-width: 1em 2px 0 1.5rem, and border-image-outset: 2, the final border-image-outset would be calculated as 2em 4px 0 3rem. Formal definition Initial value0Applies toall elements, except internal table elements when border-collapse is collapse. ...
border-image-width - CSS: Cascading Style Sheets
r is applicable) of the corresponding border-image-slice. If the image does not have the required intrinsic dimension, the corresponding border-width is used instead. Formal definition Initial value1Applies toall elements, except internal table elements when border-collapse is collapse. ...
...insic dimension, the corresponding border-width is used instead. Formal definition Initial value1Applies toall elements, except internal table elements when border-collapse is collapse. It also applies to ::first-letter.InheritednoPercentagesrefer to the width or height of the border image areaComputed valueas specified, but with relative lengths converted into absolute lengthsAnimation typeby computed value type Formal syntax [ <length-percentage> | <number> | auto ]{1,4}where <length-percentage> = <length> | <percentage> Examples Tiling a border image This example creates a border image using the following ".png" file, which is 90 by 90 pixels: Thus, each circle in the source image is 30 by 30 pixels. HTML <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirm...
border-inline-end-color - CSS: Cascading Style Sheets
ples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax border-inline-end-color: rebeccapurple; border-inline-end-color: #663399; Related properties are border-block-start-color, border-block-end-color, and border-inline-start-color, which define the other border colors of the element. ...
...ated properties are border-block-start-color, border-block-end-color, and border-inline-start-color, which define the other border colors of the element. Initial valuecurrentcolorApplies toall elementsInheritednoComputed valuecomputed colorAnimation typea color Values <'color'> The color of the border. See color. ...
border-inline-end-width - CSS: Cascading Style Sheets
ctive-examples and send us a pull request. Syntax /* <'border-width'> values */ border-inline-end-width: 2px; border-inline-end-width: thick; Related properties are border-block-start-width, border-block-end-width, and border-inline-start-width, which define the other border widths of the element. ...
...dths of the element. Initial valuemediumApplies toall elementsInheritednoPercentageslogical-width of containing blockComputed valueabsolute length; 0 if the border style is none or hiddenAnimation typea length Values <'border-width'> The width of the border. See border-width. ...
border-inline-end - CSS: Cascading Style Sheets
f the shorthand:border-width: as each of the properties of the shorthand:border-top-width: mediumborder-right-width: mediumborder-bottom-width: mediumborder-left-width: mediumborder-style: as each of the properties of the shorthand:border-top-style: noneborder-right-style: noneborder-bottom-style: noneborder-left-style: nonecolor: Varies from one browser to anotherApplies toall elementsInheritednoComputed valueas each of the properties of the shorthand:border-width: as each of the properties of the shorthand:border-bottom-width: the absolute length or 0 if border-bottom-style is none or hiddenborder-left-width: the absolute length or 0 if border-left-style is none or hiddenborder-right-width: the absolute length or 0 if border-right-style is none or hiddenborder-top-width: the absolute length or 0 if bo...
...f the shorthand:border-width: as each of the properties of the shorthand:border-top-width: mediumborder-right-width: mediumborder-bottom-width: mediumborder-left-width: mediumborder-style: as each of the properties of the shorthand:border-top-style: noneborder-right-style: noneborder-bottom-style: noneborder-left-style: nonecolor: Varies from one browser to anotherApplies toall elementsInheritednoComputed valueas each of the properties of the shorthand:border-width: as each of the properties of the shorthand:border-bottom-width: the absolute length or 0 if border-bottom-style is none or hiddenborder-left-width: the absolute length or 0 if border-left-style is none or hiddenborder-right-width: the absolute length or 0 if border-right-style is none or hiddenborder-top-width: the absolute length or 0 if bo...
border-inline-start-style - CSS: Cascading Style Sheets
nteractive-examples and send us a pull request. Syntax /* <'border-style'> values */ border-inline-start-style: dashed; border-inline-start-style: dotted; border-inline-start-style: groove; Related properties are border-block-start-style, border-block-end-style, and border-inline-end-style, which define the other border styles of the element. ...
...ated properties are border-block-start-style, border-block-end-style, and border-inline-end-style, which define the other border styles of the element. Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Values <'border-style'> The line style of the border. See border-style. ...
border-inline - CSS: Cascading Style Sheets
ht, and border-left properties, depending on the values defined for writing-mode, direction, and text-orientation. The borders in the other dimension can be set with border-block, which sets border-block-start, and border-block-end. ...
...re of the following, in any order: <'border-width'> The width of the border. See border-width. <'border-style'> The line style of the border. See border-style. <'color'> The color of the border. See color. ...
border-top-style - CSS: Cascading Style Sheets
-top-style: ridge; border-top-style: inset; border-top-style: outset; /* Global values */ border-top-style: inherit; border-top-style: initial; border-top-style: unset; The border-top-style property is specified as a single keyword chosen from those available for the border-style property. Formal definition Initial valuenoneApplies toall elements. ...
...ent CSS Backgrounds and Borders Module Level 3The definition of 'border-top-style' in that specification. Candidate Recommendation No significant change. CSS Level 2 (Revision 1)The definition of 'border-top-style' in that specification. Recommendation Initial definition. Initial valuenoneApplies toall elements. It also applies to ::first-letter.InheritednoComputed valueas specifiedAnimation typediscrete ...
clamp() - CSS: Cascading Style Sheets
Web › CSS › clamp
sizes. The <body> element's width is set as min(1000px, calc(70% + 100px)). This means that the width will be set at 1000px, unless the result of calc(70% + 100px) is less than 1000px, in which case it will be set to that value instead. min() allows you set a maximum value. The <p> element's font-size is set as max(1.2rem, 1.2vw). This means that the font-size will be set at 1.2rem, unless the computed value of 1.2vw is greater than that of 1.2rem, in which case it will be set to that value instead. max() allows you set a minimum value, which in cases like this is useful for accessibility purposes. The <h1> element's font-size is set as clamp(1.8rem, 2.5vw, 2.8rem). This means that the font-size will be set at 1.8rem, until the computed value of 2.5vw becomes greater than that of 1.8rem. At this poi...
...At this point, the font-size will be set at 2.8rem. ...
left - CSS: Cascading Style Sheets
Web › CSS › left
based on the content; or if right is also auto, the element is positioned where it should horizontally be positioned if it were a static element. for relatively positioned elements, the distance of the element from its normal position is based on the right property; or if right is also auto, the element is not moved horizontally at all. inherit Specifies that the value is the same as the computed value from its parent element (which might not be its containing block). This computed value is then handled as if it were a <length>, <percentage>, or the auto keyword. Description The effect of left depends on how the element is positioned (i.e., the value of the position property): When position is set to absolute or fixed, the left property specifies the distance between the element's left e...
... to satisfy both. If the element cannot stretch to satisfy both, the position of the element is overspecified. When this is the case, the left value has precedence when the container is left-to-right; the right value has precedence when the container is right-to-left. ...
<length> - CSS: Cascading Style Sheets
Web › CSS › length
e font-size property itself, it represents the inherited font-size of the element. ex Represents the x-height of the element's font. On fonts with the "x" letter, this is generally the height of lowercase letters in the font; 1ex ? 0.5em in many fonts. ic Equal to the used advance measure of the "?" (CJK water ideograph, U+6C34) glyph found in the font used to render it. ...
...When used on the font-size or line-height properties of the root element, it refers to the properties' initial value. ...
margin-inline - CSS: Cascading Style Sheets
the values defined for writing-mode, direction, and text-orientation. Constituent properties This property is a shorthand for the following CSS properties: margin-inline-end margin-inline-start Syntax Values The margin-inline property takes the same values as the margin-left property. ...
... writing-mode: vertical-rl; margin-inline: 20px 40px; background-color: #c8c800; } Result Specifications Specification Status Comment CSS Logical Properties and Values Level 1The definition of 'margin-inline' in that specification. Editor's Draft Initial definition. Initial value0Applies tosame as marginInheritednoPercentagesdepends on layout modelComputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoAnimation typediscrete ...
margin-left - CSS: Cascading Style Sheets
ge, relative to the width of the containing block. auto The left margin receives a share of the unused horizontal space, as determined mainly by the layout mode that is used. If the values of margin-left and margin-right are both auto, the calculated space is evenly distributed. This table summarizes the different cases: Value of display Value of float Value of position Computed value of auto Comment inline, inline-block, inline-table any static or relative 0 Inline layout mode block, inline, inline-block, block, table, inline-table, list-item, table-caption any static or relative 0, except if both margin-left and margin-right are set to auto. In this case, it is set to the value centering the element inside its par...
...itive horizontal free space. In this case, it is evenly distributed to all horizontal auto margins. Flexbox layout mode Formal definition Initial value0Applies toall elements, except elements with table display types other than table-caption, table and inline-table. ...
margin-right - CSS: Cascading Style Sheets
e, relative to the width of the containing block. auto The right margin receives a share of the unused horizontal space, as determined mainly by the layout mode that is used. If the values of margin-left and margin-right are both auto, the calculated space is evenly distributed. This table summarizes the different cases: Value of display Value of float Value of position Computed value of auto Comment inline, inline-block, inline-table any static or relative 0 Inline layout mode block, inline, inline-block, block, table, inline-table, list-item, table-caption any static or relative 0, except if both margin-left and margin-right are set to auto. In this case, it is set to the value centering the element inside its par...
...itive horizontal free space. In this case, it is evenly distributed to all horizontal auto margins. Flexbox layout mode Formal definition Initial value0Applies toall elements, except elements with table display types other than table-caption, table and inline-table. ...
order - CSS: Cascading Style Sheets
Web › CSS › order
reen reader users will not have access to the correct reading order. Flexbox & the keyboard navigation disconnect -- Tink Source Order Matters | Adrian Roselli MDN Understanding WCAG, Guideline 1.3 explanations Understanding Success Criterion 1.3.2 | W3C Understanding WCAG 2.0 Formal definition Initial value0Applies toflex items and absolutely-positioned flex container childrenInheritednoComputed valueas specifiedAnimation typean integer Formal syntax <integer> Examples Ordering items in a flex container This example uses CSS to create a classic two-sidebar layout surrounding a content block. The Flexible Box Layout Module automatically creates blocks of equal vertical size and uses as much horizontal space as available. HTML <header>...</header> <main> <article>Article</article> <na...
...n > nav { width: 200px; order: 1; } main > aside { width: 200px; order: 3; } Result Specifications Specification Status Comment CSS Flexible Box Layout ModuleThe definition of 'order' in that specification. Candidate Recommendation Initial definition Initial value0Applies toflex items and absolutely-positioned flex container childrenInheritednoComputed valueas specifiedAnimation typean integer ...
outline-width - CSS: Cascading Style Sheets
as a <length>. thin Depends on the user agent. Typically equivalent to 1px in desktop browsers (including Firefox). medium Depends on the user agent. Typically equivalent to 3px in desktop browsers (including Firefox). thick Depends on the user agent. Typically equivalent to 5px in desktop browsers (including Firefox). ...
... 1px in desktop browsers (including Firefox). medium Depends on the user agent. Typically equivalent to 3px in desktop browsers (including Firefox). thick Depends on the user agent. Typically equivalent to 5px in desktop browsers (including Firefox). ...
overflow-block - CSS: Cascading Style Sheets
en the content changes.) Printers may still print overflowing content. auto Depends on the user agent. If content fits inside the padding box, it looks the same as visible, but still establishes a new block-formatting context. Desktop browsers provide scrollbars if content overflows. ...
...div3 { overflow-block: visible; margin-bottom: 120px;} #div4 { overflow-block: auto; margin-bottom: 120px;} Result Specifications Specification Status Comment CSS Overflow Module Level 3The definition of 'overflow-block' in that specification. Working Draft Initial valueautoApplies toBlock-containers, flex containers, and grid containersInheritednoComputed valueas specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clipAnimation typediscrete ...
overflow-wrap - CSS: Cascading Style Sheets
sizes. break-word The same as the anywhere value, with normally unbreakable words allowed to be broken at arbitrary points if there are no otherwise acceptable break points in the line, but soft wrap opportunities introduced by the word break are NOT considered when calculating min-content intrinsic sizes. Formal definition Initial valuenormalApplies tonon-replaced inline elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax normal | break-word | anywhere Examples Comparing overflow-wrap, word-break, and hyphens This example compares the results of overflow-wrap, word-break, and hyphens when breaking up a long word. HTML <p>They say the fishing is excellent at Lake <em class="normal">Chargoggagoggmanchauggagoggchaubunagungamaugg</em>, though I've never been t...
...break-word { overflow-wrap: break-word; } .word-break { word-break: break-all; } .hyphens { hyphens: auto; } Result Specifications Specification Status Comment CSS Text Module Level 3The definition of 'overflow-wrap' in that specification. Working Draft Initial definition Initial valuenormalApplies tonon-replaced inline elementsInheritedyesComputed valueas specifiedAnimation typediscrete ...
overscroll-behavior-y - CSS: Cascading Style Sheets
ee overscroll-behavior for a full explanation. /* Keyword values */ overscroll-behavior-y: auto; /* default */ overscroll-behavior-y: contain; overscroll-behavior-y: none; /* Global values */ overscroll-behavior-y: inherit; overscroll-behavior-y: initial; overscroll-behavior-y: unset; Initial valueautoApplies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas specifiedAnimation typediscrete Syntax The overscroll-behavior-y property is specified as a keyword chosen from the list of values below. Values auto The default scroll overflow behavior occurs as normal. contain Default scroll overflow behavior is observed inside the element this value is set on (e.g. "bounce" effects or refreshes), but no scroll chaining occurs to neighbouring scroll...
...s set on (e.g. "bounce" effects or refreshes), but no scroll chaining occurs to neighbouring scrolling areas, e.g. underlying elements will not scroll. none No scroll chaining occurs to neighbouring scrolling areas, and default scroll overflow behavior is prevented. Formal definition Initial valueautoApplies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax contain | none | auto Examples Preventing an underlying element from scrolling vertically .messages { height: 220px; overflow: auto; overscroll-behavior-y: contain; } See overscroll-behavior for a full example and explanation. Specifications Specification Status Comment CSS Overscroll Behavior Module Level ...
right - CSS: Cascading Style Sheets
Web › CSS › right
dth based on the content; or if left is also auto, the element is positioned where it should horizontally be positioned if it were a static element. for relatively positioned elements, the distance of the element from its normal position is based on the left property; or if left is also auto, the element is not moved horizontally at all. inherit Specifies that the value is the same as the computed value from its parent element (which might not be its containing block). This computed value is then handled as if it were a <length>, <percentage>, or the auto keyword. Description The effect of right depends on how the element is positioned (i.e., the value of the position property): When position is set to absolute or fixed, the right property specifies the distance between the element's right...
...etch to satisfy both -- for example, if a width is declared -- the position of the element is over-constrained. When this is the case, the left value has precedence when the container is left-to-right; the right value has precedence when the container is right-to-left. ...
scrollbar-width - CSS: Cascading Style Sheets
It must be one of the following values: auto The default scrollbar width for the platform. ...
...the problem is compounded on high-resolution screens; thorough testing is advised). MDN Understanding WCAG, Guideline 2.1 explanations MDN Understanding WCAG, Guideline 2.5 explanations Understanding Success Criterion 2.1.1 | W3C Understanding WCAG 2.1 Understanding Success Criterion 2.5.5 | W3C Understanding WCAG 2.1 Formal definition Initial valueautoApplies toscrolling boxesInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax auto | thin | none Examples Sizing overflow scrollbars CSS .scroller { width: 300px; height: 100px; overflow-y: scroll; scrollbar-width: thin; } HTML <div class="scroller">Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon azuki bean garlic. Gumbo beet greens corn soko ...
text-decoration-thickness - CSS: Cascading Style Sheets
t. The browser must use a minimum of 1 device pixel. For a given application of this property, the thickness is constant across the whole box it is applied to, even if there are child elements with a different font size. Formal definition Initial valueautoApplies toall elements. ...
...ce pixel. For a given application of this property, the thickness is constant across the whole box it is applied to, even if there are child elements with a different font size. Formal definition Initial valueautoApplies toall elements. ...
text-decoration - CSS: Cascading Style Sheets
e line used for the decoration, such as solid, wavy, or dashed. text-decoration-thickness Sets the thickness of the line used for the decoration. Formal definition Initial valueas each of the properties of the shorthand:text-decoration-color: currentcolortext-decoration-style: solidtext-decoration-line: noneApplies toall elements. ...
...rst-line.InheritednoComputed valueas each of the properties of the shorthand:text-decoration-line: as specifiedtext-decoration-style: as specifiedtext-decoration-color: computed colortext-decoration-thickness: as specifiedAnimation typeas each of the properties of the shorthand:text-decoration-color: a colortext-decoration-style: discretetext-decoration-line: discretetext-decoration-thickness: by computed value type Formal syntax <'text-decoration-line'> | <'text-decoration-style'> | <'text-decoration-color'> | <'text-decoration-thickness'> Examples .under { text-decoration: underline red; } .over { text-decoration: wavy overline lime; } .line { text-decoration: line-through; } .plain { text-decoration: none; } .underover { text-decoration: dashed underline overline; } .thick { text...
translate - CSS: Cascading Style Sheets
Web › CSS › translate
ified. Three values Two <length-percentage> and single <length> values that specify the X, Y, and Z axis translation values (respectively) of a 3D translation. Equivalent to a translate3d() (3D translation) function. none Specifies that no translation should be applied. ...
...nsition: translate 1s; } div:hover .translate { translate: 200px 50px; } Result Specifications Specification Status Comment CSS Transforms Level 2The definition of 'individual transforms' in that specification. Editor's Draft Initial definition. Initial valuenoneApplies totransformable elementsInheritednoPercentagesrefer to the size of bounding boxComputed valueas specified, but with relative lengths converted into absolute lengthsAnimation typea transformCreates stacking contextyes ...
SVG documentation index - SVG: Scalable Vector Graphics
Web › SVG › Index
SVG, SVG Attribute The alignment-baseline attribute specifies how an object is aligned with respect to its parent. This property specifies which baseline of this element is to be aligned with the corresponding baseline of the parent. For example, this allows alphabetic baselines in Roman text to stay aligned across font size changes. It defaults to the baseline with the same name as the computed value of the alignment-baseline property. 23 alphabetic Deprecated, SVG, SVG Attribute The alphabetic attribute defines the lower baseline of a font. It has the same syntax and semantics as the baseline descriptor within an @font-face. 24 amplitude NeedsCompatTable, SVG, SVG Attribute The amplitude attribute controls the amplitude of the gamma function of a com...
...ers of a text are rendered, or a motion path along which a referenced element is animated. 158 pathLength SVG, SVG Attribute The pathLength attribute lets authors specify a total length for the path, in user units. This value is then used to calibrate the browser's distance calculations with those of the author, by scaling all distance computations using the ratio pathLength/(computed value of path length). 159 patternContentUnits SVG, SVG Attribute The patternContentUnits attribute indicates which coordinate system to use for the contents of the <pattern> element. 160 patternTransform SVG, SVG Attribute The patternTransform attribute defines a list of transform definitions that are applied to a pattern tile. 161 patternUnits ...
Table Reflow Internals - Archive of obsolete content
reflow commands. The reflower Positions reflowee (if it can) before actually reflowing in case views are involved (e.g. absolutely positioned elements) Reflows reflowee and passes a reflow state (in) and a reflow metrics (in/out) Review of Reflow The reflow state: Is a node in a tree structurally equivalent to the frame tree of reflow participants contains: reflow type, avail size, various computed values, resolved style structs possible request for preferred size and more. Review of Reflow the reflow metrics contains: max element size (if requested) - the minimum size it can be preferred size (if requested) - the size it would like to be given no size constraints. desired size - the size it would like to be given the avail size. This is equivalent to preferred size if the avail size is no...
-moz-binding - Archive of obsolete content
...
-moz-border-bottom-colors - Archive of obsolete content
tom-colors: unset; When an element has a border that is larger than a single CSS pixel, each line of pixels uses the next color specified in this property, from the outside in. This eliminates the need for nested boxes. If the border is wider than the number of specified colors, the remaining part of the border is the innermost color specified. Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete It does not apply if border-style is dashed or dotted. to tables with border-collapse: collapse. Syntax Values Accepts a white-space separated list of color values. <color> Specifies the color of a line of pixels of the bottom border. transparent is valid. See <color> values for possible units. none Default, no colors are drawn or border-color is u...
-moz-border-left-colors - Archive of obsolete content
eft-colors: unset; When an element has a border that is larger than a single CSS pixel, each line of pixels uses the next color specified in this property, from the outside in. This eliminates the need for nested boxes. If the border is wider than the number of specified colors, the remaining part of the border is the innermost color specified. Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete It does not apply if border-style is dashed or dotted. to tables with border-collapse: collapse. Syntax Values Accepts a white-space separated list of color values. <color> Specifies the color of a line of pixels of the left border. transparent is valid. See <color> values for possible units. none Default, no colors are drawn or border-color is use...
-moz-border-right-colors - Archive of obsolete content
ght-colors: unset; When an element has a border that is larger than a single CSS pixel, each line of pixels uses the next color specified in this property, from the outside in. This eliminates the need for nested boxes. If the border is wider than the number of specified colors, the remaining part of the border is the innermost color specified. Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete It does not apply if border-style is dashed or dotted. to tables with border-collapse: collapse. Syntax Values Accepts a white-space separated list of color values. <color> Specifies the color of a line of pixels of the right border. transparent is valid. See <color> values for possible units. none Default, no colors are drawn or border-color is us...
-moz-border-top-colors - Archive of obsolete content
top-colors: unset; When an element has a border that is larger than a single CSS pixel, each line of pixels uses the next color specified in this property, from the outside in. This eliminates the need for nested boxes. If the border is wider than the number of specified colors, the remaining part of the border is the innermost color specified. Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete It does not apply if border-style is dashed or dotted. to tables with border-collapse: collapse. Syntax Values Accepts a white-space separated list of color values. <color> Specifies the color of a line of pixels of the top border. transparent is valid. See <color> values for possible units. none Default, no colors are drawn or border-color is used...
-moz-stack-sizing - Archive of obsolete content
: In previous versions of Gecko it was possible to work around the problem by setting very large negative bottom and right margins on the stack element and equally large positive bottom and right margins on the children whose size you didn't want to ignore. (The problem does not affect children moved above or to the left of the stack.) Initial valuestretch-to-fitApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Syntax Values stretch-to-fit The child will influence the stack's size. ignore The stack won't consider this child when calculating its size. Formal syntax ignore | stretch-to-fit Examples .mainsheet { -moz-stack-sizing: ignore; } ...
-moz-text-blink - Archive of obsolete content
blink Text blinks. ...
-moz-window-shadow - Archive of obsolete content
sparent windows on Mac OS X. However, for these windows shadows were turned off and there was no way to turn them on. In Firefox 3.5 the default changed, with all windows having a shadow. This version introduced the -moz-window-shadow CSS property to provide a way to turn off unwanted shadows. Initial valuedefaultApplies toall elements that create native windows, e.g. <window>, <panel>InheritednoComputed valueas specifiedAnimation typediscrete Syntax The -moz-window-shadow property is specified as one of the keyword values listed below. Values default The window will have a shadow with the default window shadow style. menu The window will have the shadow style that's appropriate for menus. tooltip The window will have the shadow style that's appropriate for tooltips. sheet The window will ...
-ms-accelerator - Archive of obsolete content
true The object is a keyboard shortcut. ...
-ms-block-progression - Archive of obsolete content
Top-to-bottom block flow. Layout is horizontal. rl Right-to-left block flow. Layout is vertical. bt Bottom-to-top block flow. Layout is horizontal. lr Left-to-right block flow. Layout is vertical. Formal syntax tb | rl | bt | lr Specifications Not part of any specification. Remarks In vertical layout, text lines are rotated 90? clockwise. ...
-ms-content-zoom-chaining - Archive of obsolete content
A bounce effect is shown when the user hits a zoom limit during page manipulation. ...
-ms-content-zoom-limit-max - Archive of obsolete content
The -ms-content-zoom-limit-max CSS property is a Microsoft extension that specifies the selected elements' maximum zoom factor. Initial value400%Applies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoPercentagesThe largest allowed zoom factor. A zoom factor of 100% corresponds to no zooming. Larger values zoom in. Smaller values zoom out.Computed valueas specifiedAnimation typediscrete Syntax Values <percentage> The maximum zoom factor. Formal syntax <percentage> Specifications Not part of any specification. Remarks This property constrains the limit for touch zooming as well as values of the msContentZoomFactor property. This property has no effect on non-zoomable elements. See -ms-content-zooming for details on zoomable elements. Starting...
-ms-content-zoom-limit-min - Archive of obsolete content
The -ms-content-zoom-limit-min CSS property is a Microsoft extension that specifies the minimum zoom factor. Initial value100%Applies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoPercentagesThe smallest allowed zoom factor. A zoom factor of 100% corresponds to no zooming. Larger values zoom in. Smaller values zoom out.Computed valueas specifiedAnimation typediscrete Syntax Values <percentage> The minimum zoom factor. Formal syntax <percentage> Specifications Not part of any specification. Remarks This property constrains the limit for touch zooming as well as values of the msContentZoomFactor property. This property has no effect on non-zoomable elements. See -ms-content-zooming for details on zoomable elements. Starting with Windows 8.1,...
-ms-content-zoom-limit - Archive of obsolete content
nline-block elementsInheritednoPercentagesas each of the properties of the shorthand:-ms-content-zoom-limit-max: The largest allowed zoom factor. A zoom factor of 100% corresponds to no zooming. Larger values zoom in. Smaller values zoom out.-ms-content-zoom-limit-min: The smallest allowed zoom factor. A zoom factor of 100% corresponds to no zooming. Larger values zoom in. Smaller values zoom out.Computed valueas each of the properties of the shorthand:-ms-content-zoom-limit-max: as specified-ms-content-zoom-limit-min: as specifiedAnimation typediscrete Syntax The -ms-content-zoom-limit shorthand property is specified as one or both of the following content zoom limit values, in order, separated by spaces. Values -ms-content-zoom-limit-min Value of the -ms-content-zoom-limit-min property. -ms-co...
-ms-content-zoom-snap-points - Archive of obsolete content
The first percentage specifies where the first snap-point will be placed. ...
-ms-content-zoom-snap-type - Archive of obsolete content
Indicates that zooming is unaffected by any defined snap-points. After the contact is picked up, the content will continue to move with inertia. ...
-ms-content-zoom-snap - Archive of obsolete content
ntent-zoom-snap CSS shorthand property is a Microsoft extension that specifies values for the -ms-content-zoom-snap-type and -ms-content-zoom-snap-points properties. Initial valueas each of the properties of the shorthand:-ms-content-zoom-snap-type: none-ms-content-zoom-snap-points: snapInterval(0%, 100%)Applies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas each of the properties of the shorthand:-ms-content-zoom-snap-type: as specified-ms-content-zoom-snap-points: as specifiedAnimation typediscrete Syntax The -ms-content-zoom-snap shorthand property is specified as one or both of the following content zoom snap values, in order, separated by spaces. Values -ms-content-zoom-snap-type Value of the -ms-content-zoom-snap-type property. -ms-co...
-ms-content-zooming - Archive of obsolete content
The element is not zoomable. zoom The initial value of the top-level element. The element is zoomable. ...
-ms-filter - Archive of obsolete content
ar-gradient(to right, #ffffff 0%, #000000 100%); } .gradient.vertical { -ms-filter: 'progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#000000", GradientType=0)'; background-image: linear-gradient(to bottom, #ffffff 0%, #000000 100%); } Result Specifications Not part of any specification. ...
-ms-flow-from - Archive of obsolete content
The -ms-flow-from CSS property is a Microsoft extension that gets or sets a value identifying a region container in the document that accepts the content flow from the data source. Initial valuenoneApplies tonon-replaced elementsInheritednoComputed valueas specifiedAnimation typediscrete Syntax Values none Default. No container has been specified. <custom-ident> The name of the region container. Formal syntax [ none | <custom-ident> ]# Specifications Not part of any specification. ...
-ms-flow-into - Archive of obsolete content
The -ms-flow-into CSS property is a Microsoft extension that gets or sets a value identifying an iframe container in the document that serves as the region's data source. Initial valuenoneApplies toiframe elementsInheritednoComputed valueas specifiedAnimation typediscrete Syntax Values none Default. No container has been specified. <custom-ident> The name of the region container. Formal syntax [ none | <custom-ident> ]# Specifications Not part of any specification. ...
-ms-high-contrast-adjust - Archive of obsolete content
The -ms-high-contrast-adjust CSS property is a Microsoft extension that gets or sets a value indicating whether to override any CSS properties that would have been set in high contrast mode. Initial valueautoApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Syntax Values auto Indicates the applicable CSS properties will be adjusted as expected when the system is in high contrast mode. none Indicates the applicable CSS properties will not be adjusted when the system is in high contrast mode. Formal syntax auto | none Specifications Not part of any specification. Remarks The -ms-high-contrast-adjust property works with the -ms-high-contrast media feature. ...
-ms-hyphenate-limit-chars - Archive of obsolete content
The -ms-hyphenate-limit-chars CSS property is a Microsoft extension that specifies one to three values indicating the minimum number of characters in a hyphenated word. If the word does not meet the required minimum number of characters in the word, before the hyphen, or after the hyphen, then the word is not hyphenated. Initial valueautoApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Syntax Values auto Corresponds to a value of 5 2 2, indicating a 5-character word limit, 2 characters required before a hyphenation break, and 2 characters required following a hyphenation break. <integer>{1,3} One to three integer values, corresponding to the word limit, the minimum number of characters required before a hyphenation break, and the minimum number of c...
-ms-hyphenate-limit-lines - Archive of obsolete content
In the flow above the consecutive hyphenated lines limit would be an infinitely large positive number. ...
-ms-hyphenate-limit-zone - Archive of obsolete content
Negative values are not allowed. ...
-ms-ime-align - Archive of obsolete content
allow basic text input. In some cases, the IME may enforce a reasonable minimum size. In the case of -ms-ime-align: after, an IME might adjust the candidate window and keyboard input behavior to provide a better user experience, such as using a horizontal candidate list and allowing some keys to be sent to the app for suggestion list navigation. Initial valueautoApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Syntax /* Keyword values */ -ms-ime-align: auto; -ms-ime-align: after; Values auto Initial value. The IME may align the candidate window in any manner. after The IME should attempt to align the candidate window below the element (in left-to-right and right-to-left layouts). Formal syntax auto | after Specifications Not part of any specification.
-ms-overflow-style - Archive of obsolete content
Same as inherit. none Scrollbars are never displayed, although the element can still be scrolled if the element's content overflows. ...
-ms-scroll-chaining - Archive of obsolete content
The nearest scrollable parent element begins scrolling when the user hits a scroll limit during any manipulation. No bounce effect is shown. ...
-ms-scroll-limit-x-max - Archive of obsolete content
<length> The maximum value for the scrollLeft property. Formal syntax auto | <length> Specifications Not part of any specification. ...
-ms-scroll-limit-x-min - Archive of obsolete content
If the value is negative, then 0 is used. Formal syntax <length> Specifications Not part of any specification. ...
-ms-scroll-limit-y-max - Archive of obsolete content
<length> The maximum value for the scrollTop property. Formal syntax auto | <length> Specifications Not part of any specification. ...
-ms-scroll-limit-y-min - Archive of obsolete content
If the value is negative, then 0 is used. Formal syntax <length> Specifications Not part of any specification. ...
-ms-scroll-limit - Archive of obsolete content
on that specifies values for the -ms-scroll-limit-x-min, -ms-scroll-limit-y-min, -ms-scroll-limit-x-max, and -ms-scroll-limit-y-max properties. Initial valueas each of the properties of the shorthand:-ms-scroll-limit-x-min: 0-ms-scroll-limit-y-min: 0-ms-scroll-limit-x-max: auto-ms-scroll-limit-y-max: autoApplies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas each of the properties of the shorthand:-ms-scroll-limit-x-min: as specified-ms-scroll-limit-y-min: as specified-ms-scroll-limit-x-max: as specified-ms-scroll-limit-y-max: as specifiedAnimation typediscrete Syntax The -ms-scroll-limit property is specified as one or more of the following scroll limit values, in the order listed, separated by spaces. Values -ms-scroll-limit-x-min The va...
-ms-scroll-rails - Archive of obsolete content
This value allows for free-form panning. railed Initial value. Panning locks to the primary axis of motion. ...
-ms-scroll-snap-points-x - Archive of obsolete content
The -ms-scroll-snap-points-x CSS property is a Microsoft extension that specifies where snap-points will be located along the x-axis. Initial valuesnapInterval(0px, 100%)Applies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas specifiedAnimation typediscrete Syntax Values Note: a <length-percentage> is a value that can be either a <length> or a <percentaqe>. snapInterval( <length-percentage>, <length-percentage> ) Specifies a starting snap-point followed by the interval between all snap-points. The first value specifies where the first snap-point will be placed. The second value specifies the distance between subsequent snap-points both to the left and the right of the initial snap-point. snapList( <length-percentage># ) ...
-ms-scroll-snap-points-y - Archive of obsolete content
The -ms-scroll-snap-points-y CSS property is a Microsoft extension that specifies where snap-points will be located along the y-axis. Initial valuesnapInterval(0px, 100%)Applies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas specifiedAnimation typediscrete Syntax Values Note: a <length-percentage> is a value that can be either a <length> or a <percentaqe>. snapInterval( <length-percentage>, <length-percentage> ) Specifies a starting snap-point followed by the interval between all snap-points. The first value specifies where the first snap-point will be placed. The second value specifies the distance between subsequent snap-points both above and below the initial snap-point. snapList( <length-percentage># ) Spe...
-ms-scroll-snap-x - Archive of obsolete content
The -ms-scroll-snap-x CSS shorthand property is a Microsoft extension that specifies values for the -ms-scroll-snap-type and -ms-scroll-snap-points-x properties. Initial valueas each of the properties of the shorthand:-ms-scroll-snap-type: none-ms-scroll-snap-points-x: snapInterval(0px, 100%)Applies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas each of the properties of the shorthand:-ms-scroll-snap-type: as specified-ms-scroll-snap-points-x: as specifiedAnimation typediscrete Syntax Values The -ms-scroll-snap-x shorthand property is specified as one or both of the following values, in order and separated by spaces. -ms-scroll-snap-type The value of the -ms-scroll-snap-type property. -ms-scroll-snap-points-x The value of ...
-ms-scroll-snap-y - Archive of obsolete content
The -ms-scroll-snap-x CSS shorthand property is a Microsoft extension that specifies values for the -ms-scroll-snap-type and -ms-scroll-snap-points-y properties. Initial valueas each of the properties of the shorthand:-ms-scroll-snap-type: none-ms-scroll-snap-points-y: snapInterval(0px, 100%)Applies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas each of the properties of the shorthand:-ms-scroll-snap-type: as specified-ms-scroll-snap-points-y: as specifiedAnimation typediscrete Syntax Values The -ms-scroll-snap-y shorthand property is specified as one or both of the following values, in order and separated by spaces. -ms-scroll-snap-type The value of the -ms-scroll-snap-type property. -ms-scroll-snap-points-y The value of ...
-ms-scroll-translation - Archive of obsolete content
none No scroll wheel translation takes place. inherit The initial value. The value is inherited from the element's parent element. ...
-ms-scrollbar-3dlight-color - Archive of obsolete content
The -ms-scrollbar-3dlight-color CSS property is a Microsoft extension specifying the color of the top and left edges of the scroll box and scroll arrows of a scroll bar. Initial valuedepends on user agentApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Syntax Values <color> The color of the top and left edges of the scroll box and scroll arrows of the scroll bar. Formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )<rgba()> = rgba( <percentage>{3} [ / <alpha-value> ]? ) | rgba( ...
-ms-scrollbar-arrow-color - Archive of obsolete content
The -ms-scrollbar-arrow-color CSS property is a Microsoft extension that specifies the color of the arrow elements of a scroll arrow. Initial valueButtonTextApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Syntax Values <color> The color of the scroll arrows of the scroll bar. Formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )<rgba()> = rgba( <percentage>{3} [ / <alpha-value> ]? ) | rgba( <number>{3} [ / <alpha-value> ]? ) | rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <...
-ms-scrollbar-base-color - Archive of obsolete content
The -ms-scrollbar-base-color CSS property is a Microsoft extension that specifies the base color of the main elements of a scroll bar. Initial valuedepends on user agentApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Syntax Values <color> The base color of the main elements of a scroll bar. Formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )<rgba()> = rgba( <percentage>{3} [ / <alpha-value> ]? ) | rgba( <number>{3} [ / <alpha-value> ]? ) | rgba( <percentage>#{3} , <alpha-valu...
-ms-scrollbar-darkshadow-color - Archive of obsolete content
The -ms-scrollbar-darkshadow-color CSS property is a Microsoft extension that specifies the color of a scroll bar's gutter. Initial valueThreeDDarkShadowApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Syntax Values <color> The color of the scroll bar's gutter. Formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )<rgba()> = rgba( <percentage>{3} [ / <alpha-value> ]? ) | rgba( <number>{3} [ / <alpha-value> ]? ) | rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <a...
-ms-scrollbar-face-color - Archive of obsolete content
The -ms-scrollbar-face-color CSS property is a Microsoft extension that specifies the color of the scroll box and scroll arrows of a scroll bar. Initial valueThreeDFaceApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Syntax Values <color> The color of the scroll box and scroll arrows. Formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )<rgba()> = rgba( <percentage>{3} [ / <alpha-value> ]? ) | rgba( <number>{3} [ / <alpha-value> ]? ) | rgba( <percentage>#{3} , <alpha-value>? ) |...
-ms-scrollbar-highlight-color - Archive of obsolete content
The -ms-scrollbar-highlight-color CSS property is a Microsoft extension that specifies the color of the slider tray, the top and left edges of the scroll box, and the scroll arrows of a scroll bar. Initial valueThreeDHighlightApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Syntax Values <color> The color of the slider tray, the top and left edges of the scroll box, and the scroll arrows of a scroll bar. Formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )<rgba()> = rgba( <perc...
-ms-scrollbar-shadow-color - Archive of obsolete content
The -ms-scrollbar-shadow-color CSS property is a Microsoft extension that specifies the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar. Initial valueThreeDDarkShadowApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Syntax Values <color> The color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar. Formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )<rgba()> = rgba( <percentage>{3} [ / <alpha-value> ]? ) | rg...
-ms-scrollbar-track-color - Archive of obsolete content
The -ms-scrollbar-track-color CSS property is a Microsoft extension that specifies the color of the track element of a scrollbar. Initial valueScrollbarApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Syntax Values <color> The color of the track element. Formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )<rgba()> = rgba( <percentage>{3} [ / <alpha-value> ]? ) | rgba( <number>{3} [ / <alpha-value> ]? ) | rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-va...
-ms-text-autospace - Archive of obsolete content
This is the default value. ideograph-alpha Creates extra spacing between runs of ideographic and non-ideographic text, such as Latin-based, Cyrillic, Greek, Arabic, or Hebrew text. ...
-ms-touch-select - Archive of obsolete content
In addition, selection will start even if an onclick, onmsgesturetap, or onmouseup handler is present. This is the initial value. none The grippers are always off and default touch selection functionality is not provided. ...
-ms-wrap-margin - Archive of obsolete content
The -ms-wrap-margin CSS property is a Microsoft extension that specifies a margin that offsets the inner wrap shape from other shapes. Initial value0Applies toexclusion elementsInheritednoComputed valueas specifiedAnimation typediscrete Syntax Values <length> The margin size, a non-negative value. Formal syntax <length> Specifications Not part of any specification. Remarks Offsets created by the -ms-wrap-margin property are offset from the outside of the exclusion. This property can be set to any supported length value. ...
-ms-wrap-through - Archive of obsolete content
Its descendant inline content wraps around exclusions defined outside the element. none The exclusion element does not inherit its parent node's wrapping context. Its descendants are only subject to exclusion shapes defined inside the element. ...
azimuth - Archive of obsolete content
Archive › Web › CSS › azimuth
itioned spatially for aural presentation. This is important in that it provides a natural way to tell several voices apart, as each can be positioned to originate at a different location on the sound stage. Stereo output produce a lateral sound stage, while binaural headphones and multi-speaker setups allow for a fully three-dimensional stage. Initial valuecenterApplies toall elementsInheritedyesComputed valuenormalized angleAnimation typediscrete Syntax <angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] | behind ] | leftwards | rightwards Values angle Audible source position is described as an angle within the range -360deg to 360deg. The value 0deg means directly ahead in the center of the sound stage (this is the default value). ...
Fixing Incorrectly Sized List Item Markers - Archive of obsolete content
the list item text, but will instead stay the same as the user's default font size. See bug 97351 for more details. The Solution Fortunately, there are Mozilla-specific CSS-like rules that can be used to correct both problems. The following rule is derived from Mozilla's html.css file: *|*:-moz-list-bullet, *|*:-moz-list-number {font-size: 1em;} This rule tells Gecko-based browsers to use the computed value of font-size for the marker's parent, which is the list item itself. Thus the font sizes of the marker and the content will be the same. Since this rule is not valid CSS, it will prevent the validation of any stylesheet that contains it. One solution is to move the rule into its own stylesheet, and accept that the stylesheet in question will never validate. This might also be a place to put any ...
Fundamental text and font styling - Learn web development
In our previous module's CSS values and units article, we reviewed length and size units. Font size (set with the font-size property) can take values measured in most of these units (and others, such as percentages), however the most common units you'll use to size text are: px (pixels): The number of pixels high you want the text to be. This is an absolute unit -- it results in the same final computed value for the font on the page in pretty much any situation. ems: 1 em is equal to the font size set on the parent element of the current element we are styling (more specifically, the width of a capital letter M contained inside the parent element.) This can become tricky to work out if you have a lot of nested elements with different font sizes set, but it is doable, as you'll see below. Why bother?
Styling web forms - Learn web development
e widgets do not inherit font-family and font-size from their parents. Many browsers use the system default appearance instead. To make your forms' appearance consistent with the rest of your content, you can add the following rules to your stylesheet: button, input, select, textarea { font-family: inherit; font-size: 100%; } The inherit property value causes the property value to match the computed value of the property of its parent element; inheriting the value of the parent. The screenshots below show the difference. On the left is the default rendering of an <input type="text">, <input type="date">, <select>, <textarea>, <input type="submit">, and a <button> in Chrome on macOS, with the platform's default font style in use. On the right are the same elements, with our above style rule applie...
-moz-window-dragging
window is draggable or not. It only works in Chrome code, and only on Mac OS X. The property was added in Firefox 35 to solve intermittent problems related to Firefox windows not being moveable when busy (bug 944836). Initial value drag Applies to all elements that create native windows, e.g. <window>, <panel> Inherited no Media visual Computed value as specified Animation type discrete Canonical order the unique non-ambiguous order defined by the formal grammar Syntax The -moz-window-dragging property is specified as one of the keyword values listed below. Values drag The window is draggable. no-drag The window is not draggable Formal syntax drag | no-drag Example toolbarpaletteitem { -moz-w...
overflow-clip-box
e: On Gecko, by default, padding-box is used everywhere, but <input type="text"> and similar use the value content-box. Prior to Firefox 29, this behavior was hardcoded; since then it uses this property that can be used elsewhere too. Note that this property is activated by default only in the UA stylesheet and chrome contexts. Initial valuepadding-boxApplies toall elementsInheritednoMediavisualComputed valueas specifiedAnimation typediscreteCanonical orderthe unique non-ambiguous order defined by the formal grammar Syntax Values padding-box This keyword makes the clipping be related to the padding box. content-box This keyword makes the clipping be related to the content box. Formal syntax padding-box | content-box Examples padding-box HTML <div class="things"> <input value="ABCDEFGH...
Migrating from Firebug - Firefox Developer Tools
n bug 1335327. Inspect box model In Firebug the box model can be inspected via the Layout side panel. In the DevTools the box model is part of the Computed side panel. Both tools highlight the different parts of the box model within the page when hovering them in the box model view. Also, both tools allow you to edit the different values inline via a click on them. Inspect computed styles The computed values of CSS properties are displayed within the DevTools' Computed side panel like within Firebug's Computed side panel. The difference is that in the DevTools the properties are always listed alphabetically and not grouped (see bug 977128) and there is no option to hide the Mozilla specific styles, therefore there is an input field allowing to filter the properties. Inspect events Events assigned ...
Edit fonts - Firefox Developer Tools
want to use a different unit such as pt for font-size or line-height, you can set the property value applied to the currently inspected element to use that unit via the rules view, and the font editor will automatically pick it up and make it available in the associated units dropdown menu. Changing the unit of measure converts the numerical value to its equivalent in the new unit, so the same computed value is maintained. Example: If 1rem is equivalent to 10 pixels, when you change the unit of measurement from rem to px, 2rem becomes 20px. Line height The line-height of the inspected element. This can be set using unitless, em, %, or px units. You can select values using the slider or enter a numeric value directly into the text box. Changing the unit of measure changes the value relative to ...
UI Tour - Firefox Developer Tools
Firefox 50, the box model view did not appear in the "Computed view" tab, but had its own tab. To learn more about the CSS declarations listed in this view, see Examine computed CSS. Changes view When you are editing in the Rules view, you can see the changes you have made in the Changes view. Computed view The Computed view shows you the complete computed CSS for the selected element (The computed values are the same as what getComputedStyle would return.): Compatibility view Starting with Firefox Developer Edition version 77, the Compatibility view shows CSS compability issues, if any, for properties applied to the selected element, and for the current page as a whole. It shows icons for the browsers that do support the properties, and notes properties that are experimental or deprecated. ...
Attr.namespaceURI - Web APIs
Web › API › Attr › namespaceURI
snippet, an attribute is being examined for its localName and its namespaceURI. If the namespaceURI returns the XUL namespace and the localName returns "browser", then the node is understood to be a XUL <browser/>. if (attribute.localName == "value" && attribute.namespaceURI == "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul") { // this is a XUL value } Notes This is not a computed value that is the result of a namespace lookup based on an examination of the namespace declarations in scope. The namespace URI of an attribute is frozen at the attribute creation time. In Firefox 3.5 and earlier, the namespace URI for HTML attributes in HTML documents is null. In later versions, in compliance with HTML5, it is https://www.w3.org/1999/xhtml as in XHTML. You can create an attribute ...
CSSPrimitiveValue - Web APIs
This interface represents a single CSS value. It may be used to determine the value of a specific style property currently set in a block or to set a specific style property explicitly within the block. An instance of this interface might be obtained from the getPropertyCSSValue() method of the CSSStyleDeclaration interface. A CSSPrimitiveValue object only occurs in a context of a CSS property. Conversions are allowed between absolute values (from millimeters to centimeters, from degrees to radians, and so on) but not between relative values. ...
CSSValue - Web APIs
Web › API › CSSValue
Properties CSSValue.cssText A DOMString representing the current value. CSSValue.cssValueTypeRead only An unsigned short representing a code defining the type of the value. Possible values are: Constant Description CSS_CUSTOM The value is a custom value. CSS_INHERIT The value is inherited and the cssText contains "inherit". CSS_PRIMITIVE_VALUE The value is a primitive value and an instance of the CSSPrimitiveValue interface can be obtained by using binding-specific casting methods on this instance of the CSSValue interface. ...
A basic ray-caster - Web APIs
ni. Firefox 1.5 Beta 1 is even faster; I can run 320 x 240 at 24 fps with 4 pixel slivers. Not exactly a new member of the ID software family, but pretty decent considering it's a fully interpreted environment, and I didn't have to worry about memory allocation or video modes or coding inner routines in assembler or anything. The code does attempt to be very efficient, using array look-ups of pre-computed values, but I'm no optimization guru, so things could probably be written faster. Also, it leaves a lot to be desired in terms of trying to be any sort of game engine--there are no wall textures, no sprites, no doors, not even any teleporters to get to another level. But I'm pretty confident all those things could be added given enough time. The canvas API supports pixel copying of images, so textures...
Element.computedStyleMap() - Web APIs
cssValue.appendChild(document.createTextNode(val)); stylesList.appendChild(cssValue); } In browsers that support computedStyleMap(), you'll see a list of all the CSS properties and values. In other browsers you'll just see a link. Did you realize how many default CSS properties a link had? Update the 'a' to the 'p', and you'll notice a difference in the margin-top and margin-bottom default computed values. Specifications Specification Status Comment CSS Typed OM Level 1The definition of 'computedStyleMap()' in that specification. Working Draft Initial definition. ...
Element.namespaceURI - Web APIs
s snippet, an element is being examined for its localName and its namespaceURI. If the namespaceURI returns the XUL namespace and the localName returns "browser", then the node is understood to be a XUL <browser/>. if (element.localName == "browser" && element.namespaceURI == "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul") { // this is a XUL browser } Notes This is not a computed value that is the result of a namespace lookup based on an examination of the namespace declarations in scope. The namespace URI of a node is frozen at the node creation time. In Firefox 3.5 and earlier, the namespace URI for HTML elements in HTML documents is null. In later versions, in compliance with HTML5, it is http://www.w3.org/1999/xhtml as in XHTML. You can create an element with the specifi...
Using the MediaStream Recording API - Web APIs
ic app setup section. Keeping the interface constrained to the viewport, regardless of device height, with calc() The calc() function is one of those useful little utility features that's cropped up in CSS that doesn't look like much initially, but soon starts to make you think "Wow, why didn't we have this before? Why was CSS2 layout so awkward?" It allows you do a calculation to determine the computed value of a CSS unit, mixing different units in the process. For example, in Web Dictaphone we have three main UI areas, stacked vertically. We wanted to give the first two (the header and the controls) fixed heights: header { height: 70px; } .main-controls { padding-bottom: 0.7rem; height: 170px; } However, we wanted to make the third area (which contains the recorded samples you can play bac...
Node.namespaceURI - Web APIs
Web › API › Node › namespaceURI
n this snippet, a node is being examined for its Node.localName and its namespaceURI. If the namespaceURI returns the XUL namespace and the localName returns "browser", then the node is understood to be a XUL <browser/>. if (node.localName == "browser" && node.namespaceURI == "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul") { // this is a XUL browser } Notes This is not a computed value that is the result of a namespace lookup based on an examination of the namespace declarations in scope. The namespace URI of a node is frozen at the node creation time. In Firefox 3.5 and earlier, the namespace URI for HTML elements in HTML documents is null. In later versions, in compliance with HTML5, it is https://www.w3.org/1999/xhtml as in XHTML. For nodes of any Node.nodeType other than...
SVGGeometryElement.getTotalLength() - Web APIs
Note: This method was originally part of the SVGPathElement interface. SVG 2 introduced the SVGGeometryElement interface and moved the property to it. Syntax float someElement.getTotalLength(); Return value A float indicating the total length of the path in user units. ...
SVGGeometryElement - Web APIs
ment determines whether a point is considered to be within the fill. SVGGeometryElement.isPointInStroke() Determines whether a given point is within the stroke shape of an element. Normal hit testing rules apply; the value of the pointer-events property on the element determines whether a point is considered to be within the stroke. SVGGeometryElement.getTotalLength() Returns the user agent's computed value for the total length of the path in user units. SVGGeometryElement.getPointAtLength() Returns the point at a given distance along the path. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'SVGGeometryElement' in that specification. Candidate Recommendation Initial definition ...
SVGGraphicsElement - Web APIs
le">SVGGraphicsElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Note: This interface was introduced in SVG 2 and replaces the SVGLocatable and SVGTransformable interfaces from SVG 1.1. Properties This interface also inherits properties from its parent, SVGElement. SVGGraphicsElement.transform Read only An SVGAnimatedTransformList reflecting the computed value of the transform property and its corresponding transform attribute of the given element. Methods This interface also inherits methods from its parent, SVGElement. SVGGraphicsElement.getBBox() Returns a DOMRect representing the computed bounding box of the current element. SVGGraphicsElement.getCTM() Returns a DOMMatrix representing the matrix that transforms the current element's coordi...
SVGPathElement.getTotalLength() - Web APIs
Note: In SVG 2 this method was moved to the SVGGeometryElement interface, from which the SVGPathElement inherits it. Syntax float someElement.getTotalLength(); Return value A float indicating the total length of the path in user units. ...
SVGPathElement - Web APIs
SVGPathElement.pathLength An SVGAnimatedNumber corresponding to the pathLength attribute of the given <path> element. Note: In SVG 2 this property was moved to the SVGGeometryElement interface, from which this interface inherits it. Methods This interface also inherits methods from its parent, SVGGeometryElement. SVGPathElement.getTotalLength() Returns a float representing the computed value for the total length of the path using the browser's distance-along-a-path algorithm, as a distance in the current user coordinate system. Note: In SVG 2 this method was moved to the SVGGeometryElement interface, from which this interface inherits it. SVGPathElement.getPointAtLength() Returns an SVGPoint representing the x and y coordinates in user space utilizing the browser's distance...
The 'X' property - Web APIs
The x property describes the horizontal coordinate of the position of the element. Usage context Name x Value <length> | <percentage> Initial 0 Applies to <mask> , 'svg', 'rect', 'image', 'foreignObject' Inherited no Percentages refer to the size of the current viewport (see Units) Media visual Computed value absolute length or percentage Animatable yes Simple usage A <coordinate> is a length in the user coordinate system that is the given distance from the origin of the user coordinate system along the relevant axis (the x-axis for X coordinates, the y-axis for Y coordinates). Its syntax is the same as that for <length> // Rect draws a rectangle with upper left-hand corner at x...
Window.getDefaultComputedStyle() - Web APIs
That is, only user-agent and user styles are taken into account. Syntax var style = window.getDefaultComputedStyle(element [, pseudoElt]); Parameters element The Element for which to get the computed style. pseudoElt Optional A string specifying the pseudo-element to match. Must be null (or not specified) for regular elements. Return value The returned style is a CSSStyleDeclaration object. The object is of the same type as the object returned by Window.getComputedStyle(), but only takes into account user-agent and user rules. ...
Window - Web APIs
Web › API › Window
iate. Window.close() Closes the current window. Window.confirm() Displays a dialog with a message that the user needs to respond to. Window.dump() Writes a message to the console. Window.find() Searches for a given string in a window. Window.focus() Sets focus on the current window. Window.getComputedStyle() Gets computed style for the specified element. Computed style indicates the computed values of all CSS properties of the element. Window.getDefaultComputedStyle() Gets default computed style for the specified element, ignoring author stylesheets. Window.getSelection() Returns the selection object representing the selected item(s). Window.matchMedia() Returns a MediaQueryList object representing the specified media query string. Window.maximize() FIXME: NeedsContents Window.m...
Custom properties (--*): CSS variables - CSS: Cascading Style Sheets
Web › CSS › --*
--, like --example-name, represent custom properties that contain a value that can be used in other declarations using the var() function. Custom properties are scoped to the element(s) they are declared on, and participate in the cascade: the value of such a custom property is that from the declaration decided by the cascading algorithm. Initial valuesee proseApplies toall elementsInheritedyesComputed valueas specified with variables substitutedAnimation typediscrete Syntax --somekeyword: left; --somecolor: #0000ff; --somecomplexvalue: 3px 6px rgb(20, 32, 54); <declaration-value> This value matches any sequence of one or more tokens, so long as the sequence does not contain an unallowed token. It represents the entirety of what a valid declaration can have as its value. Note: Custom proper...
-moz-context-properties - CSS: Cascading Style Sheets
stroke value set on the image to the embedded SVG. fill-opacity Expose the fill-opacity value set on the image to the embedded SVG. stroke-opacity Expose the stoke-opacity value set on the image to the embedded SVG. Formal definition Initial valuenoneApplies toAny element that can have an image applied to it, for example as a background-image, border-image, or list-style-image.InheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax none | [ fill | fill-opacity | stroke | stroke-opacity ]# Examples Exposing fill and stroke to an SVG image In this example we have a simple SVG embedded using an <img> element. You first need to specify on the embedding element the properties whose values you wish to expose to the embedded SVG, using the -moz-context-properties property. For ...
-moz-float-edge - CSS: Cascading Style Sheets
t the margin. content-box The height and width properties include the content, but not the padding, border or margin. margin-box The height and width properties include the content, padding, border and margin. padding-box The height and width properties include the content and padding but not the border or margin. ...
-moz-force-broken-image-icon - CSS: Cascading Style Sheets
attribute. Syntax Values <integer> A value of 1 means that the broken image icon is shown even if the image has an alt attribute. When the value 0 is used the image will act as usual and only display the alt attribute. Note: Even if the value is set to 1 the alt attribute will still be displayed, alongside the broken image icon. ...
-moz-image-region - CSS: Cascading Style Sheets
he top, right, bottom, and left offsets of the edges of the image, in this order. Formal definition Initial valueautoApplies toXUL <image> elements and :-moz-tree-image, :-moz-tree-twisty, and :-moz-tree-checkbox pseudo-elements. Note: -moz-image-region only works with <image> elements where the icon is specified using list-style-image. ...
-moz-orient - CSS: Cascading Style Sheets
element is rendered orthogonally to the axis of the text: vertically for horizontal writing modes, horizontal for vertical writing modes. horizontal The element is rendered horizontally. vertical The element is rendered vertically. ...
-moz-outline-radius-bottomleft - CSS: Cascading Style Sheets
e curvature of the bottom and left edges of the element, specified as a CSS <length>. <percentage> The radius of the circle defining the rounding of the bottom-left corner of the element, specified as the percentages of the bottom and left sides of the border box. Formal definition Initial value0Applies toall elementsInheritednoPercentagesrefer to the corresponding dimension of the border boxComputed valueas specifiedAnimation typea length, percentage or calc(); Formal syntax <outline-radius>where <outline-radius> = <length> | <percentage> Examples Rounding a outline Since this is a Firefox-only property, this example will not display the desired effect if you are viewing this in a browser other than Firefox. HTML <p>Look at this paragraph's bottom-left corner.</p> CSS p { margin: 10px; ...
-moz-outline-radius-bottomright - CSS: Cascading Style Sheets
urvature of the bottom and right edges of the element, specified as a CSS <length>. <percentage> The radius of the circle defining the rounding of the bottom-right corner of the element, specified as the percentages of the bottom and right sides of the border box. ...
-moz-outline-radius-topleft - CSS: Cascading Style Sheets
fining the curvature of the top and left edges of the element, specified as a CSS <length>. <percentage> The radius of the circle defining the rounding of the top-left corner of the element, specified as the percentages of the top and left sides of the border box. Formal definition Initial value0Applies toall elementsInheritednoPercentagesrefer to the corresponding dimension of the border boxComputed valueas specifiedAnimation typea length, percentage or calc(); Formal syntax <outline-radius>where <outline-radius> = <length> | <percentage> Examples The example below will not display the desired effect if you are viewing this in a browser other than Firefox. HTML <p>Look at this paragraph's top-left corner.</p> CSS p { margin: 5px; border: solid cyan; outline: dotted red; -moz-outlin...
-moz-outline-radius-topright - CSS: Cascading Style Sheets
ing the curvature of the top and right edges of the element, specified as a CSS <length>. <percentage> The radius of the circle defining the rounding of the top-right corner of the element, specified as the percentages of the top and right sides of the border box. ...
-moz-outline-radius - CSS: Cascading Style Sheets
itednoPercentagesas each of the properties of the shorthand:-moz-outline-radius-topleft: refer to the corresponding dimension of the border box-moz-outline-radius-topright: refer to the corresponding dimension of the border box-moz-outline-radius-bottomright: refer to the corresponding dimension of the border box-moz-outline-radius-bottomleft: refer to the corresponding dimension of the border boxComputed valueas each of the properties of the shorthand:-moz-outline-radius-topleft: as specified-moz-outline-radius-topright: as specified-moz-outline-radius-bottomright: as specified-moz-outline-radius-bottomleft: as specifiedAnimation typeas each of the properties of the shorthand:-moz-outline-radius-topleft: a length, percentage or calc();-moz-outline-radius-topright: a length, percentage or calc();-moz-ou...
-moz-user-input - CSS: Cascading Style Sheets
r. Please note that this value is no longer supported in Firefox 60 onwards (bug 1405087). disabled The element does not accept user input. However, this is not the same as setting disabled to true, in that the element is drawn normally. Please note that this value is no longer supported in Firefox 60 onwards (bug 1405087). Formal definition Initial valueautoApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | none | enabled | disabled Examples Disabling user input for an element input.example { /* The user will be able to select the text, but not change it. */ -moz-user-input: disabled; } Specifications Not part of any standard. ...
-webkit-box-reflect - CSS: Cascading Style Sheets
Web sites. To achieve reflection on the Web, the standard way is to use the CSS element() function. Syntax Values above, below, right, left Are keywords indicating in which direction the reflection is to happen. <length> Indicates the size of the reflection. <image> Describes the mask to be applied to the reflection. ...
-webkit-line-clamp - CSS: Cascading Style Sheets
e-clamp: 3; -webkit-line-clamp: 10; /* Global values */ -webkit-line-clamp: inherit; -webkit-line-clamp: initial; -webkit-line-clamp: unset; none This value specifies that the content won't be clamped. <integer> This value specifies the number of lines after which the content will be clamped. It must be greater than 0. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typeby computed value type Formal syntax none | <integer> Examples Truncating a paragraph HTML <p> In this example the <code>-webkit-line-clamp</code> property is set to <code>3</code>, which means the text is clamped after three lines. An ellipsis will be shown at the point where the text is clamped. </p> CSS p { width: 300px; display: -webkit-box; -webkit-...
-webkit-mask-attachment - CSS: Cascading Style Sheets
nitial; -webkit-mask-attachment: unset; Syntax Values scroll If scroll is specified, the mask image scrolls within the viewport along with the block that contains the mask image. fixed If fixed is specified, the mask image does not scroll with its containing element, instead remaining stationary within the viewport. Formal definition Initial valuescrollApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <attachment>#where <attachment> = scroll | fixed | local Examples Fixing a mask image to the viewport body { -webkit-mask-image: url('images/mask.png'); -webkit-mask-attachment: fixed; } Specifications Not part of any standard. ...
-webkit-mask-box-image - CSS: Cascading Style Sheets
<gradient> A -webkit-gradient function to be used as a mask image. ...
-webkit-mask-composite - CSS: Cascading Style Sheets
pixels of the destination mask image are rendered only if they overlap a nontransparent portion of the destination mask image. This causes the destination mask image to have no effect. xor Overlapping pixels in the source mask image and the destination mask image become fully transparent if they are both fully opaque. ...
-webkit-mask-repeat-x - CSS: Cascading Style Sheets
ps) until there is room for another one to be added. When the next image is added, all of the current ones compress to allow room. Example: An image with an original width of 260px, repeated three times, might stretch until each repetition is 300px wide, and then another image will be added. They will then compress to 225px. ...
-webkit-mask-repeat-y - CSS: Cascading Style Sheets
re is room for another one to be added. When the next image is added, all of the current ones compress to allow room. Example: An image with an original height of 260px, repeated three times, might stretch until each repetition is 300px high, and then another image will be added. They will then compress to a height of 225px. ...
-webkit-overflow-scrolling - CSS: Cascading Style Sheets
ouchscreen. touch Use momentum-based scrolling, where the content continues to scroll for a while after finishing the scroll gesture and removing your finger from the touchscreen. The speed and duration of the continued scrolling is proportional to how vigorous the scroll gesture was. Also creates a new stacking context. Formal definition Initial valueautoApplies toscrolling boxesInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | touch Examples HTML <div class="scroll-touch"> <p> This paragraph has momentum scrolling </p> </div> <div class="scroll-auto"> <p> This paragraph does not. </p> </div> CSS div { width: 100%; overflow: auto; } p { width: 200%; background: #f5f9fa; border: 2px solid #eaf2f4; padding: 10px; } .scroll-touch { ...
-webkit-tap-highlight-color - CSS: Cascading Style Sheets
at appears over a link while it's being tapped. The highlighting indicates to the user that their tap is being successfully recognized, and indicates which element they're tapping on. -webkit-tap-highlight-color: red; -webkit-tap-highlight-color: transparent; /* for removing the highlight */ Syntax Values A <color value>. ...
-webkit-text-fill-color - CSS: Cascading Style Sheets
es */ -webkit-text-fill-color: red; -webkit-text-fill-color: #000000; -webkit-text-fill-color: rgb(100, 200, 0); /* Global values */ -webkit-text-fill-color: inherit; -webkit-text-fill-color: initial; -webkit-text-fill-color: unset; Syntax Values <color> The foreground fill color of the element's text content. ...
-webkit-text-stroke-color - CSS: Cascading Style Sheets
ed. /* <color> values */ -webkit-text-stroke-color: red; -webkit-text-stroke-color: #e08ab4; -webkit-text-stroke-color: rgb(200, 100, 0); /* Global values */ -webkit-text-stroke-color: inherit; -webkit-text-stroke-color: initial; -webkit-text-stroke-color: unset; Syntax Values <color> The color of the stroke. ...
-webkit-text-stroke-width - CSS: Cascading Style Sheets
/* <length> values */ -webkit-text-stroke-width: 2px; -webkit-text-stroke-width: 0.1em; -webkit-text-stroke-width: 1mm; -webkit-text-stroke-width: 5pt; /* Global values */ -webkit-text-stroke-width: inherit; -webkit-text-stroke-width: initial; -webkit-text-stroke-width: unset; Values <line-width> The width of the stroke. ...
-webkit-text-stroke - CSS: Cascading Style Sheets
onstituent properties This property is a shorthand for the following CSS properties: -webkit-stroke-color -webkit-stroke-width Syntax Values <length> The width of the stroke. <color> The color of the stroke. ...
-webkit-touch-callout - CSS: Cascading Style Sheets
allows disabling that behavior. /* Keyword values */ -webkit-touch-callout: default; -webkit-touch-callout: none; /* Global values */ -webkit-touch-callout: initial; -webkit-touch-callout: inherit; -webkit-touch-callout: unset; Syntax Values default The default callout is displayed. none The callout is disabled. Formal definition Initial valuedefaultApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax default | none Examples Turn off touch callout .example { -webkit-touch-callout: none; } Specifications Not part of any standard. Apple has a description in the Safari CSS Reference. ...
additive-symbols - CSS: Cascading Style Sheets
e system is used to construct sign-value numbering systems such as Roman numerals. Syntax additive-symbols: 3 "0"; additive-symbols: 3 "0", 2 "\2E\20"; additive-symbols: 3 "0", 2 url(symbol.png); When the system descriptor is cyclic, numeric, alphabetic, symbolic, or fixed, use the symbols descriptor instead of additive-symbols. ...
fallback - CSS: Cascading Style Sheets
back style will be used are: When the range descriptor is specified for a counter style, the fallback style will be used to represent values that fall outside the range. When the fixed system is used and there are not enough symbols to cover all the list items, the fallback style will be used for the rest of the list items. ...
negative - CSS: Cascading Style Sheets
resentation. The negative descriptor has effect only if the system value is symbolic, alphabetic, numeric, additive, or extends, if the extended counter style itself uses a negative sign. If the negative descriptor is specified for other systems that don't support negative counter values, then the descriptor is ignored. ...
pad - CSS: Cascading Style Sheets
ations longer than the pad length are constructed as normal. Pad descriptor takes the minimum marker length as an integer and a symbol to be used for padding as the second parameter. A common usage of the pad descriptor is when you need your list to start numbering from 01 and go through 02, 03 and so on, instead of just 1, 2, 3... ...
prefix - CSS: Cascading Style Sheets
rker representation. If not specified, the default value will be "" (an empty string). Syntax /* <symbol> values */ prefix: ">>"; prefix: "Page "; prefix: url(bullet.png); Values <symbol> Specifies a <symbol> that is prepended to the marker representation. It may be a <string>, <image>, or <custom-ident>. ...
range - CSS: Cascading Style Sheets
For extends systems, the range is whatever auto will produce for the extended system. When range is specified as integers, the value infinite can be used to denote infinity. If infinite is specified as the first value in a range, then it is interpreted as negative infinity. If used as upper bound, it is taken as positive infinity. ...
speak-as - CSS: Cascading Style Sheets
like specifying the fallback descriptor. If the specified style does not exist, speak-as defaults to auto. Accessibility concerns Assistive technology support is very limited for the speak-as property. Do not rely on it to convey information critical to understanding the page's purpose. ...
suffix - CSS: Cascading Style Sheets
yle rule specifies content that will be appended to the marker representation. Syntax /* <symbol> values */ suffix: ""; suffix: ") "; suffix: url(bullet.png); Values <symbol> Specifies a <symbol> that is appended to the marker representation. It may be a <string>, <image>, or <custom-ident>. Formal definition Related at-rule@counter-styleInitial value". ...
symbols - CSS: Cascading Style Sheets
7" "8" "9"; symbols: url('first.svg') url('second.svg') url('third.svg'); symbols: indic-numbers; The symbols descriptor must be specified when the value of the system descriptor is cyclic, numeric, alphabetic, symbolic, or fixed. When the additive system is used, use the additive-symbols descriptor instead to specify the symbols. ...
system - CSS: Cascading Style Sheets
extend from the decimal counter style. It must not contain a symbols or additive-symbols descriptor, or else the counter style rule is invalid. If one more more counter styles defenitions form a cycle with their extends values, the browser will treat all the participating counter styles as extending from the decimal style. ...
font-display - CSS: Cascading Style Sheets
used normally. Font swap period If the font face is not loaded, any element attempting to use it must render a fallback font face. If the font face successfully loads during this period, it is used normally. Font failure period If the font face is not loaded, the user agent treats it as a failed load causing normal font fallback. ...
font-family - CSS: Cascading Style Sheets
t-family CSS descriptor allows authors to specify the font family for the font specified in an @font-face rule. Syntax /* <string> values */ font-family: "font family"; font-family: 'another font family'; /* <custom-ident> value */ font-family: examplefont; Values <family-name> Specifies the name of the font family. Formal definition Related at-rule@font-faceInitial valuen/a (required)Computed valueas specified Formal syntax <family-name>where <family-name> = <string> | <custom-ident>+ Examples Setting the font family name @font-face { font-family: examplefont; src: url('examplefont.ttf'); } Specifications Specification Status Comment CSS Fonts Module Level 3The definition of 'font-family' in that specification. Candidate Recommendation Initial d...
font-stretch - CSS: Cascading Style Sheets
varying glyph widths. Accessibility concerns People with dyslexia and other cognitive conditions may have difficulty reading fonts that are too condensed, especially if the font has a low contrast color ratio. ...
font-style - CSS: Cascading Style Sheets
additionally specifies an angle for the slant of the text. oblique with angle range Selects a font classified as oblique, and additionally specifies a range of allowable angle for the slant of the text. Note that a range is only supported when the font-style is oblique; for font-style: normal or italic, no second value is allowed. ...
font-variation-settings - CSS: Cascading Style Sheets
engine to enable or disable font features. Each setting is always a <string> of 4 ASCII characters, followed by a <number> indicating the axis value. If the <string> has more or fewer characters or contains characters outside the U+20 - U+7E codepoint range, the whole property is invalid. The <number> can be fractional or negative. ...
font-weight - CSS: Cascading Style Sheets
oncerns People experiencing low vision conditions may have difficulty reading text set with a font-weight value of 100 (Thin/Hairline) or 200 (Extra Light), especially if the font has a low contrast color ratio. ...
src - CSS: Cascading Style Sheets
Web › CSS › @font-face › src
ne font load only one of the fonts for a given @font-face rule. Fragment identifiers are used to indicate which font to load. If a container format lacks a defined fragment identifier scheme, a simple 1-based indexing scheme (e.g., "font-collection#1" for the first font, "font-collection#2" for the second font, etc.) is used. ...
unicode-range - CSS: Cascading Style Sheets
d the font resource needed for the text content of a particular page. For example, a site with many localizations could provide separate font resources for English, Greek and Japanese. For users viewing the English version of a page, the font resources for Greek and Japanese fonts wouldn't need to be downloaded, saving bandwidth. Formal definition Related at-rule@font-faceInitial valueU+0-10FFFFComputed valueas specified Formal syntax <unicode-range># Examples Using a different font for a single character In this example we create a simple HTML containing a single <div> element, including an ampersand, that we want to style with a different font. To make it obvious, we will use a sans-serif font, Helvetica, for the text, and a serif font, Times New Roman, for the ampersand. In the CSS we are in ...
bleed - CSS: Cascading Style Sheets
Web › CSS › @page › bleed
values */ bleed: auto; /* <length> values */ bleed: 8pt; bleed: 1cm; Values auto Computes to 6pt if the value of marks is crop. Otherwise it computes to zero. <length> Specifies by how far outward, in each direction, the bleed area extends past the page box. Values may be negative, but there may be implementation-specific limits. Formal definition Related at-rule@pageInitial valueautoComputed valueas specified Formal syntax auto | <length> Examples Setting a page bleed of 1cm @page { bleed: 1cm; } Specifications Specification Status Comment CSS Paged Media Module Level 3The definition of 'bleed' in that specification. Working Draft Initial definition ...
marks - CSS: Cascading Style Sheets
Web › CSS › @page › marks
tside the page box. To have room to show crop and cross marks, the final pages will have to be somewhat bigger than the page box. Syntax /* Keyword values */ marks: none; marks: crop; marks: cross; marks: crop cross; Values crop Crop marks will be displayed. cross Cross marks will be displayed. none No marks will be displayed. Formal definition Related at-rule@pageInitial valuenoneComputed valueas specified Formal syntax none | [ crop | cross ] Examples Adding crop and cross marks @page { marks: crop cross; } Specifications Specification Status Comment CSS Paged Media Module Level 3The definition of 'marks' in that specification. Working Draft Initial definition This CSS property was initially proposed in CSS Level 2, but was dropped fro...
size - CSS: Cascading Style Sheets
Web › CSS › @page › size
x 364mm. letter This keyword is a equivalent to the dimensions of letter paper in North America i.e. 8.5in x 11in. legal This keyword is a equivalent to the dimensions of legal papers in North America i.e. 8.5in x 14in. ledger This keyword is a equivalent to the dimensions of ledger pages in North America i.e. 11in x 17in. ...
height - CSS: Cascading Style Sheets
Web › CSS › @viewport › height
ontent height), and this element is not absolutely positioned, the percentage value is treated as 0.max-height: The percentage is calculated with respect to the height of the generated box's containing block. ...
max-height - CSS: Cascading Style Sheets
Values auto The used value is calculated from the other CSS descriptors' values. <length> A non-negative absolute or relative length. <percentage> A percentage value relative to the height of the initial viewport at zoom factor 1.0 for vertical lengths. Must be non-negative. ...
max-width - CSS: Cascading Style Sheets
Values auto The used value is calculated from the other CSS descriptors' values. <length> A non-negative absolute or relative length. <percentage> A percentage value relative to the width of the initial viewport at zoom factor 1.0 for horizontal lengths. Must be non-negative. ...
max-zoom - CSS: Cascading Style Sheets
x-zoom: 2.0; /* <percentage> value */ max-zoom: 150%; Values auto The user agent will set the document's upper zoom factor limit. <number> A non-negative number limiting the maximum value of the zoom factor. <percentage> A non-negative percentage limiting the maximum value of the zoom factor. Formal definition Related at-rule@viewportInitial valueautoPercentagesthe zoom factor itselfComputed valueauto, or a non-negative number or percentage as specified Formal syntax auto | <number> | <percentage> Examples Setting max-zoom @viewport { max-zoom: 1.5; } Specifications Specification Status Comment CSS Device AdaptationThe definition of '"max-zoom" descriptor' in that specification. Working Draft Initial definition ...
min-height - CSS: Cascading Style Sheets
Values auto The used value is calculated from the other CSS descriptors' values. <length> A non-negative absolute or relative length. <percentage> A percentage value relative to the height of the initial viewport at zoom factor 1.0 for vertical lengths. Must be non-negative. ...
min-width - CSS: Cascading Style Sheets
culated from the other CSS descriptors' values. <length> A non-negative absolute or relative length. <percentage> A percentage value relative to the width or height of the initial viewport at zoom factor 1.0, for horizontal and vertical lengths respectively. Must be non-negative. ...
min-zoom - CSS: Cascading Style Sheets
n-zoom: 2.0; /* <percentage> value */ min-zoom: 150%; Values auto The user agent will set the document's lower zoom factor limit. <number> A non-negative number limiting the minimum value of the zoom factor. <percentage> A non-negative percentage limiting the minimum value of the zoom factor. Formal definition Related at-rule@viewportInitial valueautoPercentagesthe zoom factor itselfComputed valueauto, or a non-negative number or percentage as specified Formal syntax auto | <number> | <percentage> Examples Setting min zoom factor @viewport { min-zoom: 2.0; } Specifications Specification Status Comment CSS Device AdaptationThe definition of '"min-zoom" descriptor' in that specification. Working Draft Initial definition ...
orientation - CSS: Cascading Style Sheets
vice has such a hardware sensor), although there is often a user-controlled, OS-level "Lock orientation" setting that will trump the accelerometer reading. portrait The document should be locked into portrait orientation. landscape The document should be locked into landscape orientation. Formal definition Related at-rule@viewportInitial valueautoPercentagesrefer to the size of bounding boxComputed valueas specified Formal syntax auto | portrait | landscape Examples Setting viewport orientation @viewport { orientation: landscape; } Specifications Specification Status Comment CSS Device AdaptationThe definition of '"orientation" descriptor' in that specification. Working Draft Initial definition ...
user-zoom - CSS: Cascading Style Sheets
om in or out. Accessibility concerns Disabling zooming capabilities prevents people experiencing low vision conditions from being able to read and understand page content. MDN Understanding WCAG, Guideline 1.4 explanations Understanding Success Criterion 1.4.4 | Understanding WCAG 2.0 Formal definition Related at-rule@viewportInitial valuezoomPercentagesrefer to the size of bounding boxComputed valueas specified Formal syntax zoom | fixed Examples Disabling user zoom @viewport { user-zoom: fixed; } Specifications Specification Status Comment CSS Device AdaptationThe definition of '"user-zoom" descriptor' in that specification. Working Draft Initial definition ...
viewport-fit - CSS: Cascading Style Sheets
ent doesn't end up outside the display. This descriptor hasn't been added to https://github.com/mdn/data/blob/master/css/at-rules.json yet. Accessibility concerns When using the viewport-fit descriptor, one must keep in mind that not all device displays are rectangular, and should therefore make use of the safe area inset variables. Formal definition Related at-rule@viewportInitial valueautoComputed valueas specified Formal syntax auto | contain | cover Examples Scaling viewport to fit device display @viewport { viewport-fit: cover; } Specifications Specification Status Comment CSS Round Display Level 1The definition of '"viewport-fit" descriptor' in that specification. Working Draft Initial definition. ...
width - CSS: Cascading Style Sheets
Web › CSS › @viewport › width
initial viewport at zoom factor 1.0, for horizontal and vertical lengths respectively. Must be non-negative. ...
zoom - CSS: Cascading Style Sheets
Web › CSS › @viewport › zoom
auto The user agent will set the document's initial zoom factor. The user agent may use the size of canvas area on which the document is rendered to determine that factor. <number> A non-negative number used as the zoom factor. <percentage> A non-negative percentage value used as the zoom factor. Formal definition Related at-rule@viewportInitial valueautoPercentagesthe zoom factor itselfComputed valueauto, or a non-negative number or percentage as specified Formal syntax auto | <number> | <percentage> Examples Setting viewport zoom factor @viewport { zoom: 2.0; } Specifications Specification Status Comment CSS Device AdaptationThe definition of '"zoom" descriptor' in that specification. Working Draft Initial specification ...
Using CSS animations - CSS: Cascading Style Sheets
a <percentage> to indicate the time during the animation sequence at which they take place. 0% indicates the first moment of the animation sequence, while 100% indicates the final state of the animation. Because these two times are so important, they have special aliases: from and to. Both are optional. If from/0% or to/100% is not specified, the browser starts or finishes the animation using the computed values of all attributes. You can optionally include additional keyframes that describe intermediate steps between the start and end of the animation. Examples Note: Some older browsers (pre-2017) may need prefixes; the live examples you can click to see in your browser include the -webkit prefixed syntax. Making text slide across the browser window This simple example styles the <p> element so th...
CSS values and units - CSS: Cascading Style Sheets
out quotes: .box { float: left; } CSS-wide values In addition to the pre-defined keywords that are part of the specification for a property, all CSS properties accept the CSS-wide property values initial, inherit, and unset, which explicitly specify defaulting behaviors. The initial keyword represents the value specified as the property's initial value. The inherit keyword represents the computed value of the property on the element's parent, provided it is inherited. The unset keyword acts as either inherit or initial, depending on whether the property is inherited or not. A fourth value of revert was added in the Cascade Level 4 specification, but it does not currently have good browser support. URLs A <url> type uses functional notation, which accepts a <string> that is a URL. This may b...
Layout and the containing block - CSS: Cascading Style Sheets
n value of paint (e.g. contain: paint;) Note: The containing block in which the root element (<html>) resides is a rectangle called the initial containing block. It has the dimensions of the viewport (for continuous media) or the page area (for paged media). Calculating percentage values from the containing block As noted above, when certain properties are given a percentage value, the computed value depends on the element's containing block. The properties that work this way are box model properties and offset properties: The height, top, and bottom properties compute percentage values from the height of the containing block. The width, left, right, padding, and margin properties compute percentage values from the width of the containing block. Some examples The HTML code for all our ...
CSS reference - CSS: Cascading Style Sheets
Web › CSS › Reference
ecifies a special state of the selected element(s). Pseudo elements :: Represents entities that are not included in HTML. See also: Selectors in the Selectors Level 4 specification. ...
Actual value - CSS: Cascading Style Sheets
r example, a user agent that can only render borders with a whole-number pixel width may round the thickness of the border to the nearest integer. Calculating a property's actual value The user agent performs four steps to calculate a property's actual (final) value: First, the specified value is determined based on the result of cascading, inheritance, or using the initial value. Next, the computed value is calculated according to the specification (for example, a span with position: absolute will have its computed display changed to block). Then, layout is calculated, resulting in the used value. Finally, the used value is transformed according to the limitations of the local environment, resulting in the actual value. Specifications Specification Status Comment ...
align-items - CSS: Cascading Style Sheets
erflows the alignment container causing data loss, the item is instead aligned as if the alignment mode were start. unsafe Used alongside an alignment keyword. Regardless of the relative sizes of the item and alignment container and whether overflow which causes data loss might happen, the given alignment value is honored. ...
align-self - CSS: Cascading Style Sheets
nment container along the cross axis. safe If the size of the item overflows the alignment container, the item is instead aligned as if the alignment mode were start. unsafe Regardless of the relative sizes of the item and alignment container, the given alignment value is honored. Formal definition Initial valueautoApplies toflex items, grid items, and absolutely-positioned boxesInheritednoComputed valueauto computes to itself on absolutely-positioned elements, and to the computed value of align-items on the parent (minus any legacy keywords) on all other boxes, or start if the box has no parent. Its behavior depends on the layout model, as described for justify-self. Otherwise the specified value.Animation typediscrete Formal syntax auto | normal | stretch | <baseline-position> | <overflow-pos...
all - CSS: Cascading Style Sheets
Web › CSS › all
es were specified for the element. Author origin Rolls back the cascade to the user level, so that the specified values are calculated as if no author-level rules were specified for the element. For purposes of revert, the Author origin includes the Override and Animation origins. Formal definition Initial valueThere is no practical initial value for it.Applies toall elementsInheritednoComputed valueas the specified value applies to each property this is a shorthand for.Animation typeas each of the properties of the shorthand (all properties but unicode-bidi and direction) Formal syntax initial | inherit | unset | revert Examples HTML <blockquote id="quote"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </blockquote> Phasellus eget velit sagittis. CSS body { font-size: s...
animation-delay - CSS: Cascading Style Sheets
t. Note: When you specify multiple comma-separated values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are. For more information, see Setting multiple animation property values. Formal definition Initial value0sApplies toall elements, ::before and ::after pseudo-elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <time># Examples See CSS animations for examples. Specifications Specification Status Comment CSS AnimationsThe definition of 'animation-delay' in that specification. Working Draft Initial definition. Browser compatibility The compatibility table on this page is generated from structured data. If you'd...
animation-direction - CSS: Cascading Style Sheets
Note: When you specify multiple comma-separated values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are. For more information, see Setting multiple animation property values. Formal definition Initial valuenormalApplies toall elements, ::before and ::after pseudo-elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <single-animation-direction>#where <single-animation-direction> = normal | reverse | alternate | alternate-reverse Examples See CSS animations for examples. Specifications Specification Status Comment CSS AnimationsThe definition of 'animation-direction' in that specification. Working Draft Initial definition.
animation-duration - CSS: Cascading Style Sheets
0s. Note: When you specify multiple comma-separated values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are. For more information, see Setting multiple animation property values. Formal definition Initial value0sApplies toall elements, ::before and ::after pseudo-elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <time># Examples See CSS animations for examples. Specifications Specification Status Comment CSS AnimationsThe definition of 'animation-duration' in that specification. Working Draft Initial definition. ...
animation-iteration-count - CSS: Cascading Style Sheets
e values are invalid. Note: When you specify multiple values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are. For more information, see Setting multiple animation property values. Formal definition Initial value1Applies toall elements, ::before and ::after pseudo-elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <single-animation-iteration-count>#where <single-animation-iteration-count> = infinite | <number> Examples See CSS animations for examples. Specifications Specification Status Comment CSS AnimationsThe definition of 'animation-iteration-count' in that specification. Working Draft Initial definition. ...
animation-name - CSS: Cascading Style Sheets
t. Note: When you specify multiple comma-separated values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are. For more information, see Setting multiple animation property values. Formal definition Initial valuenoneApplies toall elements, ::before and ::after pseudo-elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax [ none | <keyframes-name> ]#where <keyframes-name> = <custom-ident> | <string> Examples See CSS animations for examples. Specifications Specification Status Comment CSS AnimationsThe definition of 'animation-name' in that specification. Working Draft Initial definition. ...
animation-play-state - CSS: Cascading Style Sheets
Note: When you specify multiple comma-separated values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are. For more information, see Setting multiple animation property values. Formal definition Initial valuerunningApplies toall elements, ::before and ::after pseudo-elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <single-animation-play-state>#where <single-animation-play-state> = running | paused Examples See CSS animations for examples. Specifications Specification Status Comment CSS AnimationsThe definition of 'animation-play-state' in that specification. Working Draft Initial definition. ...
animation-timing-function - CSS: Cascading Style Sheets
d) Note: When you specify multiple comma-separated values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are. For more information, see Setting multiple animation property values. ...
animation - CSS: Cascading Style Sheets
Web › CSS › animation
ccess Criterion 2.2.2 | W3C Understanding WCAG 2.0 Formal definition Initial valueas each of the properties of the shorthand:animation-name: noneanimation-duration: 0sanimation-timing-function: easeanimation-delay: 0sanimation-iteration-count: 1animation-direction: normalanimation-fill-mode: noneanimation-play-state: runningApplies toall elements, ::before and ::after pseudo-elementsInheritednoComputed valueas each of the properties of the shorthand:animation-name: as specifiedanimation-duration: as specifiedanimation-timing-function: as specifiedanimation-delay: as specifiedanimation-direction: as specifiedanimation-iteration-count: as specifiedanimation-fill-mode: as specifiedanimation-play-state: as specifiedAnimation typediscrete Formal syntax <single-animation>#where <single-animation> = <time...
appearance (-moz-appearance, -webkit-appearance) - CSS: Cascading Style Sheets
Removed in Firefox 64. -moz-window-frame-left Firefox Removed in Firefox 64. -moz-window-frame-right Firefox Removed in Firefox 64. -moz-window-titlebar Firefox Removed in Firefox 64. -moz-window-titlebar-maximized Firefox Removed in Firefox 64. ...
aspect-ratio - CSS: Cascading Style Sheets
involving intrinsic aspect ratio always work with the content box dimensions. <ratio> The box's preferred aspect ratio is the specified ratio of width / height. Size calculations involving preferred aspect ratio work with the dimensions of the box specified by box-sizing. Formal definition Initial valueautoApplies toall elements except inline boxes and internal ruby or table boxesInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax auto | <ratio> Examples Mapping width and height to aspect-ratio Firefox has added an internal aspect-ratio property (in version 69 onwards) that applies to replaced elements and other related elements that accept width and height attributes. This appears in the browser's internal UA stylesheet. Chrome is also shipping this feature. In Firefo...
attr() - CSS: Cascading Style Sheets
Web › CSS › attr
-background] { background-color: attr(data-background color, red); } Specifications Specification Status Comment CSS Values and Units Module Level 4The definition of 'attr()' in that specification. Editor's Draft Changed it to work like var(). Property values involving attr() are valid at parse time, and the validation of the attribute value is deferred to computed value time. CSS Values and Units Module Level 3The definition of 'attr()' in that specification. Candidate Recommendation Added two optional parameters; can be used on all properties; may return values other than <string>. These changes are experimental and may be dropped during the CR phase if browser support is too small. CSS Level 2 (Revision 1)The definiti...
backdrop-filter - CSS: Cascading Style Sheets
rop-filter: initial; backdrop-filter: unset; Syntax Values none No filter is applied to the backdrop. <filter-function-list> A space-separated list of <filter-function>s or an SVG filter that will be applied to the backdrop. ...
backface-visibility - CSS: Cascading Style Sheets
-visibility: initial; backface-visibility: unset; The backface-visibility property is specified as one of the keywords listed below. Values visible The back face is visible when turned towards the user. hidden The back face is hidden, effectively making the element invisible when turned away from the user. Formal definition Initial valuevisibleApplies totransformable elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax visible | hidden Examples Cube with transparent and opaque faces This example shows a cube with transparent faces, and one with opaque faces. HTML <table> <tr> <th><code>backface-visibility: visible;</code></th> <th><code>backface-visibility: hidden;</code></th> </tr> <tr> <td> <div class="container"> <div clas...
background-attachment - CSS: Cascading Style Sheets
ckground positioning area are relative to the scrollable area of the element rather than to the border framing them. scroll The background is fixed relative to the element itself and does not scroll with its contents. (It is effectively attached to the element's border.) Formal definition Initial valuescrollApplies toall elements. It also applies to ::first-letter and ::first-line.InheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <attachment>#where <attachment> = scroll | fixed | local Examples Simple example HTML <p> There were doors all round the hall, but they were all locked; and when Alice had been all the way down one side and up the other, trying every door, she walked sadly down the middle, wondering how she was ever to get out again. </p> CSS p { b...
background-blend-mode - CSS: Cascading Style Sheets
tial; background-blend-mode: inherit; background-blend-mode: unset; Values <blend-mode> The blending mode to be applied. There can be several values, separated by commas. Formal definition Initial valuenormalApplies toAll elements. In SVG, it applies to container elements, graphics elements, and graphics referencing elements.. ...
background-color - CSS: Cascading Style Sheets
and 3:1 for larger text such as headings. Large text is defined as 18.66px and bold or larger, or 24px or larger. WebAIM: Color Contrast Checker MDN Understanding WCAG, Guideline 1.4 explanations Understanding Success Criterion 1.4.3 | W3C Understanding WCAG 2.0 Formal definition Initial valuetransparentApplies toall elements. ...
background-image - CSS: Cascading Style Sheets
users. If the image contains information critical to understanding the page's overall purpose, it is better to describe it semantically in the document. MDN Understanding WCAG, Guideline 1.1 explanations Understanding Success Criterion 1.1.1 | W3C Understanding WCAG 2.0 Formal definition Initial valuenoneApplies toall elements. ...
background-origin - CSS: Cascading Style Sheets
d as one of the keyword values listed below. Values border-box The background is positioned relative to the border box. padding-box The background is positioned relative to the padding box. content-box The background is positioned relative to the content box. Formal definition Initial valuepadding-boxApplies toall elements. ...
background-position-x - CSS: Cascading Style Sheets
und image is aligned with the left edge of the container, and a value of 100% means that the right edge of the background image is aligned with the right edge of the container, thus a value of 50% horizontally centers the background image. ...
background-position-y - CSS: Cascading Style Sheets
ound image is aligned with the top edge of the container, and a value of 100% means that the bottom edge of the background image is aligned with the bottom edge of the container, thus a value of 50% vertically centers the background image. ...
background-position - CSS: Cascading Style Sheets
"container-image difference" will be zero. You will need to offset using absolute values. Formal definition Initial value0% 0%Applies toall elements. ...
background-repeat - CSS: Cascading Style Sheets
compress to 225px. no-repeat The image is not repeated (and hence the background image painting area will not necessarily be entirely covered). The position of the non-repeated background image is defined by the background-position CSS property. Formal definition Initial valuerepeatApplies toall elements. ...
background-size - CSS: Cascading Style Sheets
ause it's impossible to replicate rendering in versions of Firefox prior to 8, and in browsers not implementing Firefox 8's rendering, without knowing the exact size of the element whose background is being specified. Formal definition Initial valueauto autoApplies toall elements. It also applies to ::first-letter and ::first-line.InheritednoPercentagesrelative to the background positioning areaComputed valueas specified, but with relative lengths converted into absolute lengthsAnimation typerepeatable list of simple list of length, percentage, or calc Formal syntax <bg-size>#where <bg-size> = [ <length-percentage> | auto ]{1,2} | cover | containwhere <length-percentage> = <length> | <percentage> Examples Please see Scaling background images for examples. Specifications Specification ...
background - CSS: Cascading Style Sheets
nsparentApplies toall elements. ...
<basic-shape> - CSS: Cascading Style Sheets
o the closest side of the reference box. For circles, this is the closest side in any dimension. For ellipses, this is the closest side in the radius dimension. farthest-side uses the length from the center of the shape to the farthest side of the reference box. For circles, this is the farthest side in any dimension. For ellipses, this is the farthest side in the radius dimension. Description Computed values of basic shapes The values in a <basic-shape> function are computed as specified, with these exceptions: Omitted values are included and compute to their defaults. A <position> value in circle() or ellipse() is computed as a pair of offsets (horizontal then vertical) from the top left origin, each given as a combination of an absolute length and a percentage. A <border-radius> value in ins...
border-block-color - CSS: Cascading Style Sheets
for writing-mode, direction, and text-orientation. border-block-color: yellow; border-block-color: #F5F6F7; The border color in the other dimension can be set with border-inline-color which sets border-inline-start-color, and border-inline-end-color. Syntax Values <'color'> The color of the border. See color. ...
border-block-end-color - CSS: Cascading Style Sheets
and send us a pull request. Syntax border-block-end-color: yellow; border-block-end-color: #F5F6F7; Related properties are border-block-start-color, border-inline-start-color, and border-inline-end-color, which define the other border colors of the element. Values <'color'> The color of the border. See color. ...
border-block-end-style - CSS: Cascading Style Sheets
er-block-end-style: dashed; border-block-end-style: dotted; border-block-end-style: groove; Related properties are border-block-start-style, border-inline-start-style, and border-inline-end-style, which define the other border styles of the element. Values <'border-style'> The line style of the border. See border-style. ...
border-block-end-width - CSS: Cascading Style Sheets
ock-end-width: 5px; border-block-end-width: thick; Related properties are border-block-start-width, border-inline-start-width, and border-inline-end-width, which define the other border widths of the element. Values <'border-width'> The width of the border. See border-width. ...
border-block-end - CSS: Cascading Style Sheets
re of the following, in any order: <'border-width'> The width of the border. See border-width. <'border-style'> The line style of the border. See border-style. <'color'> The color of the border. See color. ...
border-block-start-color - CSS: Cascading Style Sheets
nteractive-examples and send us a pull request. Syntax border-block-start-color: blue; border-block-start-color: #4c5d21; Related properties are border-block-end-color, border-inline-start-color, and border-inline-end-color, which define the other border colors of the element. ...
border-block-start-style - CSS: Cascading Style Sheets
lock-start-style: dashed; border-block-start-style: dotted; border-block-start-style: groove; Related properties are border-block-end-style, border-inline-start-style, and border-inline-end-style, which define the other border styles of the element. Values <'border-style'> The line style of the border. See border-style. ...
border-block-start - CSS: Cascading Style Sheets
f the shorthand:border-width: as each of the properties of the shorthand:border-top-width: mediumborder-right-width: mediumborder-bottom-width: mediumborder-left-width: mediumborder-style: as each of the properties of the shorthand:border-top-style: noneborder-right-style: noneborder-bottom-style: noneborder-left-style: nonecolor: Varies from one browser to anotherApplies toall elementsInheritednoComputed valueas each of the properties of the shorthand:border-width: as each of the properties of the shorthand:border-bottom-width: the absolute length or 0 if border-bottom-style is none or hiddenborder-left-width: the absolute length or 0 if border-left-style is none or hiddenborder-right-width: the absolute length or 0 if border-right-style is none or hiddenborder-top-width: the absolute length or 0 if bo...
border-block-style - CSS: Cascading Style Sheets
e'> values */ border-block-style: dashed; border-block-style: dotted; border-block-style: groove; The border style in the other dimension can be set with border-inline-style, which sets border-inline-start-style, and border-inline-end-style. Syntax Values <'border-style'> The line style of the border. See border-style. ...
border-block-width - CSS: Cascading Style Sheets
s */ border-block-width: 5px; border-block-width: thick; The border width in the other dimension can be set with border-inline-width, which sets border-inline-start-width, and border-inline-end-width. Syntax Values <'border-width'> The width of the border. See border-width. ...
border-block - CSS: Cascading Style Sheets
re of the following, in any order: <'border-width'> The width of the border. See border-width. <'border-style'> The line style of the border. See border-style. <'color'> The color of the border. See color. ...
border-bottom-color - CSS: Cascading Style Sheets
m-color: currentcolor; border-bottom-color: transparent; /* Global values */ border-bottom-color: inherit; border-bottom-color: initial; border-bottom-color: unset; The border-bottom-color property is specified as a single value. Values <color> The color of the bottom border. Formal definition Initial valuecurrentcolorApplies toall elements. It also applies to ::first-letter.InheritednoComputed valuecomputed colorAnimation typea color Formal syntax <'border-top-color'> Examples A simple div with a border HTML <div class="mybox"> <p>This is a box with a border around it. Note which side of the box is <span class="redtext">red</span>.</p> </div> CSS .mybox { border: solid 0.3em gold; border-bottom-color: red; width: auto; } .redtext { color: red; } Result ...
border-bottom-left-radius - CSS: Cascading Style Sheets
e height of the box. Negative values are invalid. Formal definition Initial value0Applies toall elements; but User Agents are not required to apply to table and inline-table elements when border-collapse is collapse. The behavior on internal table elements is undefined for the moment.. It also applies to ::first-letter.InheritednoPercentagesrefer to the corresponding dimension of the border boxComputed valuetwo absolute <length>s or <percentage>sAnimation typea length, percentage or calc(); Formal syntax <length-percentage>{1,2}where <length-percentage> = <length> | <percentage> Examples Live example Code . An arc of circle is used as the border div { border-bottom-left-radius: 40px 40px; } . An arc of ellip...
border-bottom-right-radius - CSS: Cascading Style Sheets
e height of the box. Negative values are invalid. Formal definition Initial value0Applies toall elements; but User Agents are not required to apply to table and inline-table elements when border-collapse is collapse. The behavior on internal table elements is undefined for the moment.. It also applies to ::first-letter.InheritednoPercentagesrefer to the corresponding dimension of the border boxComputed valuetwo absolute <length>s or <percentage>sAnimation typea length, percentage or calc(); Formal syntax <length-percentage>{1,2}where <length-percentage> = <length> | <percentage> Examples Live example Code . An arc of circle is used as the border div { border-bottom-right-radius: 40px 40px; } . An arc of elli...
border-bottom-style - CSS: Cascading Style Sheets
border-bottom-style: inset; border-bottom-style: outset; /* Global values */ border-bottom-style: inherit; border-bottom-style: initial; border-bottom-style: unset; The border-bottom-style property is specified as a single keyword chosen from those available for the border-style property. Formal definition Initial valuenoneApplies toall elements. ...
border-bottom-width - CSS: Cascading Style Sheets
Note: Because the specification doesn't define the exact thickness denoted by each keyword, the precise result when using one of them is implementation-specific. Nevertheless, they always follow the pattern thin <= medium <= thick, and the values are constant within a single document. Formal definition Initial valuemediumApplies toall elements. ...
border-bottom - CSS: Cascading Style Sheets
y order, and one or two of them may be omitted. Values <br-width> See border-bottom-width. <br-style> See border-bottom-style. <color> See border-bottom-color. Formal definition Initial valueas each of the properties of the shorthand:border-bottom-width: mediumborder-bottom-style: noneborder-bottom-color: currentcolorApplies toall elements. ...
border-collapse - CSS: Cascading Style Sheets
t; The border-collapse property is specified as a single keyword, which may be chosen from the list below. Values collapse Adjacent cells have shared borders (the collapsed-border table rendering model). separate Adjacent cells have distinct borders (the separated-border table rendering model). ...
border-color - CSS: Cascading Style Sheets
lors apply to the top, right, bottom, and left in that order (clockwise). Values <color> Defines the color of the border. Formal definition Initial valueas each of the properties of the shorthand:border-top-color: currentcolorborder-right-color: currentcolorborder-bottom-color: currentcolorborder-left-color: currentcolorApplies toall elements. ...
border-end-end-radius - CSS: Cascading Style Sheets
e height of the box. Negative values are invalid. Formal definition Initial value0Applies toall elements; but User Agents are not required to apply to table and inline-table elements when border-collapse is collapse. The behavior on internal table elements is undefined for the moment.. ...
border-end-start-radius - CSS: Cascading Style Sheets
e height of the box. Negative values are invalid. Formal definition Initial value0Applies toall elements; but User Agents are not required to apply to table and inline-table elements when border-collapse is collapse. The behavior on internal table elements is undefined for the moment.. ...
border-image-repeat - CSS: Cascading Style Sheets
Tiles may be stretched to achieve the proper fit. space The source image's edge regions are tiled (repeated) to fill the gap between each border. Extra space will be distributed in between tiles to achieve the proper fit. Formal definition Initial valuestretchApplies toall elements, except internal table elements when border-collapse is collapse. ...
border-image-slice - CSS: Cascading Style Sheets
mage region and displays it like a background image, but stacked above the actual background. Its width and height are sized to match the top and left image regions, respectively. Formal definition Initial value100%Applies toall elements, except internal table elements when border-collapse is collapse. It also applies to ::first-letter.InheritednoPercentagesrefer to the size of the border imageComputed valueone to four percentage(s) (as specified) or absolute length(s), plus the keyword fill if specifiedAnimation typeby computed value type Formal syntax <number-percentage>{1,4} && fill?where <number-percentage> = <number> | <percentage> Examples Adjustable border width and slice The folowing example shows a simple <div> with a border image set on it. The source image for the borders is as follow...
border-image-source - CSS: Cascading Style Sheets
source: inherit; border-image-source: initial; border-image-source: unset; Values none No border image is used. The appearance defined by border-style is displayed instead. <image> Image reference to use for the border. Formal definition Initial valuenoneApplies toall elements, except internal table elements when border-collapse is collapse. ...
border-inline-color - CSS: Cascading Style Sheets
d for writing-mode, direction, and text-orientation. border-inline-color: yellow; border-inline-color: #F5F6F7; The border color in the other dimension can be set with border-block-color which sets border-block-start-color, and border-block-end-color. Syntax Values <'color'> The color of the border. See color. ...
border-inline-end-style - CSS: Cascading Style Sheets
-inline-end-style: dashed; border-inline-end-style: dotted; border-inline-end-style: groove; Related properties are border-block-start-style, border-block-end-style, and border-inline-start-style, which define the other border styles of the element. Values <'border-style'> The line style of the border. See border-style. ...
border-inline-start-color - CSS: Cascading Style Sheets
and send us a pull request. Syntax border-inline-start-color: red; border-inline-start-color: #ee4141; Related properties are border-block-start-color, border-block-end-color, and border-inline-end-color, which define the other border colors of the element. Values <'color'> The color of the border. See color. ...
border-inline-start-width - CSS: Cascading Style Sheets
e-start-width: 5px; border-inline-start-width: thick; Related properties are border-block-start-width, border-block-end-width, and border-inline-end-width, which define the other border widths of the element. Values <'border-width'> The width of the border. See border-width. ...
border-inline-start - CSS: Cascading Style Sheets
f the shorthand:border-width: as each of the properties of the shorthand:border-top-width: mediumborder-right-width: mediumborder-bottom-width: mediumborder-left-width: mediumborder-style: as each of the properties of the shorthand:border-top-style: noneborder-right-style: noneborder-bottom-style: noneborder-left-style: nonecolor: Varies from one browser to anotherApplies toall elementsInheritednoComputed valueas each of the properties of the shorthand:border-width: as each of the properties of the shorthand:border-bottom-width: the absolute length or 0 if border-bottom-style is none or hiddenborder-left-width: the absolute length or 0 if border-left-style is none or hiddenborder-right-width: the absolute length or 0 if border-right-style is none or hiddenborder-top-width: the absolute length or 0 if bo...
border-inline-style - CSS: Cascading Style Sheets
e'> values */ border-inline-style: dashed; border-inline-style: dotted; border-inline-style: groove; The border style in the other dimension can be set with border-block-style, which sets border-block-start-style, and border-block-end-style. Syntax Values <'border-style'> The line style of the border. See border-style. ...
border-inline-width - CSS: Cascading Style Sheets
10px; border-inline-width: 5px; border-inline-width: thick; The border width in the other dimension can be set with border-block-width, which sets border-block-start-width, and border-block-end-width. Syntax Values <'border-width'> The width of the border. See border-width. ...
border-left-color - CSS: Cascading Style Sheets
; border-left-color: currentcolor; border-left-color: transparent; /* Global values */ border-left-color: inherit; border-left-color: initial; border-left-color: unset; The border-left-color property is specified as a single value. Values <color> The color of the left border. Formal definition Initial valuecurrentcolorApplies toall elements. ...
border-left-style - CSS: Cascading Style Sheets
tyle: ridge; border-left-style: inset; border-left-style: outset; /* Global values */ border-left-style: inherit; border-left-style: initial; border-left-style: unset; The border-left-style property is specified as a single keyword chosen from those available for the border-style property. Formal definition Initial valuenoneApplies toall elements. ...
border-left-width - CSS: Cascading Style Sheets
Note: Because the specification doesn't define the exact thickness denoted by each keyword, the precise result when using one of them is implementation-specific. Nevertheless, they always follow the pattern thin <= medium <= thick, and the values are constant within a single document. Formal definition Initial valuemediumApplies toall elements. ...
border-left - CSS: Cascading Style Sheets
cified in any order, and one or two of them may be omitted. Values <br-width> See border-left-width. <br-style> See border-left-style. <color> See border-left-color. Formal definition Initial valueas each of the properties of the shorthand:border-left-width: mediumborder-left-style: noneborder-left-color: currentcolorApplies toall elements. ...
border-radius - CSS: Cascading Style Sheets
0border-top-right-radius: 0border-bottom-right-radius: 0border-bottom-left-radius: 0Applies toall elements; but User Agents are not required to apply to table and inline-table elements when border-collapse is collapse. The behavior on internal table elements is undefined for the moment.. ...
border-right-color - CSS: Cascading Style Sheets
r-right-color: currentcolor; border-right-color: transparent; /* Global values */ border-right-color: inherit; border-right-color: initial; border-right-color: unset; The border-right-color property is specified as a single value. Values <color> The color of the right border. Formal definition Initial valuecurrentcolorApplies toall elements. ...
border-right-style - CSS: Cascading Style Sheets
ridge; border-right-style: inset; border-right-style: outset; /* Global values */ border-right-style: inherit; border-right-style: initial; border-right-style: unset; The border-right-style property is specified as a single keyword chosen from those available for the border-style property. Formal definition Initial valuenoneApplies toall elements. ...
border-right-width - CSS: Cascading Style Sheets
Note: Because the specification doesn't define the exact thickness denoted by each keyword, the precise result when using one of them is implementation-specific. Nevertheless, they always follow the pattern thin <= medium <= thick, and the values are constant within a single document. Formal definition Initial valuemediumApplies toall elements. ...
border-right - CSS: Cascading Style Sheets
in any order, and one or two of them may be omitted. Values <br-width> See border-right-width. <br-style> See border-right-style. <color> See border-right-color. Formal definition Initial valueas each of the properties of the shorthand:border-right-width: mediumborder-right-style: noneborder-right-color: currentcolorApplies toall elements. ...
border-spacing - CSS: Cascading Style Sheets
lues are specified, the first value defines the horizontal spacing between cells (i.e., the space between cells in adjacent columns), and the second value defines the vertical spacing between cells (i.e., the space between cells in adjacent rows). Values <length> The size of the spacing as a fixed value. Formal definition Initial value0Applies totable and inline-table elementsInheritedyesComputed valuetwo absolute lengthsAnimation typediscrete Formal syntax <length> <length>? Examples Spacing and padding table cells This example applies a spacing of .5em vertically and 1em horizontally between a table's cells. Note how, along its outside edges, the table's padding values are added to its border-spacing values. HTML <table> <tr> <td>1</td><td>2</td><td>3</td> </tr> <tr> <td>...
border-start-end-radius - CSS: Cascading Style Sheets
e height of the box. Negative values are invalid. Formal definition Initial value0Applies toall elements; but User Agents are not required to apply to table and inline-table elements when border-collapse is collapse. The behavior on internal table elements is undefined for the moment.. ...
border-start-start-radius - CSS: Cascading Style Sheets
e height of the box. Negative values are invalid. Formal definition Initial value0Applies toall elements; but User Agents are not required to apply to table and inline-table elements when border-collapse is collapse. The behavior on internal table elements is undefined for the moment.. ...
border-top-color - CSS: Cascading Style Sheets
%, 0.75); border-top-color: currentcolor; border-top-color: transparent; /* Global values */ border-top-color: inherit; border-top-color: initial; border-top-color: unset; The border-top-color property is specified as a single value. Values <color> The color of the top border. Formal definition Initial valuecurrentcolorApplies toall elements. ...
border-top-left-radius - CSS: Cascading Style Sheets
e height of the box. Negative values are invalid. Formal definition Initial value0Applies toall elements; but User Agents are not required to apply to table and inline-table elements when border-collapse is collapse. The behavior on internal table elements is undefined for the moment.. ...
border-top-right-radius - CSS: Cascading Style Sheets
e height of the box. Negative values are invalid. Formal definition Initial value0Applies toall elements; but User Agents are not required to apply to table and inline-table elements when border-collapse is collapse. The behavior on internal table elements is undefined for the moment.. ...
border-top-width - CSS: Cascading Style Sheets
Note: Because the specification doesn't define the exact thickness denoted by each keyword, the precise result when using one of them is implementation-specific. Nevertheless, they always follow the pattern thin <= medium <= thick, and the values are constant within a single document. Formal definition Initial valuemediumApplies toall elements. ...
border-top - CSS: Cascading Style Sheets
be specified in any order, and one or two of them may be omitted. Values <br-width> See border-top-width. <br-style> See border-top-style. <color> See border-top-color. Formal definition Initial valueas each of the properties of the shorthand:border-top-width: mediumborder-top-style: noneborder-top-color: currentcolorApplies toall elements. ...
border-width - CSS: Cascading Style Sheets
mplementation-specific. Nevertheless, they always follow the pattern thin <= medium <= thick, and the values are constant within a single document. Formal definition Initial valueas each of the properties of the shorthand:border-top-width: mediumborder-right-width: mediumborder-bottom-width: mediumborder-left-width: mediumApplies toall elements. ...
border - CSS: Cascading Style Sheets
Web › CSS › border
der-style: as each of the properties of the shorthand:border-top-style: noneborder-right-style: noneborder-bottom-style: noneborder-left-style: noneborder-color: as each of the properties of the shorthand:border-top-color: currentcolorborder-right-color: currentcolorborder-bottom-color: currentcolorborder-left-color: currentcolorApplies toall elements. ...
bottom - CSS: Cascading Style Sheets
Web › CSS › bottom
s a height based on the content; or if top is also auto, the element is positioned where it should vertically be positioned if it were a static element. for relatively positioned elements, the distance of the element from its normal position is based on the top property; or if top is also auto, the element is not moved vertically at all. inherit Specifies that the value is the same as the computed value from its parent element (which might not be its containing block). This computed value is then handled as if it were a <length>, <percentage>, or the auto keyword. Formal definition Initial valueautoApplies topositioned elementsInheritednoPercentagesrefer to the height of the containing blockComputed valueif specified as a length, the corresponding absolute length; if specified as a percentage...
box-align - CSS: Cascading Style Sheets
Web › CSS › box-align
ox designated the start for alignment purposes depends on the box's orientation: Horizontal top Vertical left The edge opposite to the start is designated the end. If the alignment is set using the element's align attribute, then the style is ignored. ...
box-decoration-break - CSS: Cascading Style Sheets
e specified border, padding, and margin wrapping each fragment. The border-radius, border-image, and box-shadow are applied to each fragment independently. The background is also drawn independently for each fragment, which means that a background image with background-repeat: no-repeat may nevertheless repeat multiple times. ...
box-direction - CSS: Cascading Style Sheets
the box designated the start for layout purposes depends on the box's orientation: Horizontal left Vertical top The edge opposite to the start is designated the end. If the direction is set using the element's dir attribute, then the style is ignored. Formal definition Initial valuenormalApplies toelements with a CSS display value of box or inline-boxInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax normal | reverse | inherit Examples Setting box direction .example { /* bottom-to-top layout */ -moz-box-direction: reverse; /* Mozilla */ -webkit-box-direction: reverse; /* WebKit */ box-direction: reverse; /* As specified */ } Specifications Not part of any standard. Browser compatibility The compatibility table ...
box-flex-group - CSS: Cascading Style Sheets
e elements in a manner similar to that used when adding extra space. Each flex group is examined in turn and space is removed according to the ratio of the flexibility of each element. Elements do not shrink below their minimum widths. Syntax The box-flex-group property is specified as any positive <integer>. ...
box-flex - CSS: Cascading Style Sheets
Web › CSS › box-flex
property. A trick to make all content elements in a containing box the same size, is to give them all a fixed size (e.g. height: 0), and the same box-flex value greater than zero (e.g. -moz-box-flex: 1). ...
box-ordinal-group - CSS: Cascading Style Sheets
boxes) of the container. Elements with the same ordinal group are flowed in the order they appear in the source document tree. In the reverse direction, the ordinal groups are examined in the same order, except the elements appear reversed. Syntax The box-ordinal-group property is specified as any positive <integer>. ...
box-orient - CSS: Cascading Style Sheets
keywords which, in English, map to horizontal and vertical respectively. Description HTML DOM elements lay out their contents along the inline-axis by default. This CSS property will only apply to HTML elements with a CSS display value of box or inline-box. Formal definition Initial valueinline-axis (horizontal in XUL)Applies toelements with a CSS display value of box or inline-boxInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax horizontal | vertical | inline-axis | block-axis | inherit Examples Setting horizontal box orientation Here, he box-orient property will cause the two <p> sections in the example to display in the same line. HTML <div class="example"> <p>I will be to the left of my sibling.</p> <p>I will be to the right of my sibling.</p> </div> CSS ...
box-pack - CSS: Cascading Style Sheets
Web › CSS › box-pack
Normal Reverse Horizontal left right Vertical top bottom The edge opposite to the start is designated the end. If the packing is set using the element's pack attribute, then the style is ignored. ...
box-shadow - CSS: Cascading Style Sheets
put shadows has one inset and the other not inset, the entire shadow list is uninterpolable. If the lists of shadows have different lengths, then the shorter list is padded at the end with shadows whose color is transparent, all lengths are 0, and whose inset (or not) matches the longer list. Formal definition Initial valuenoneApplies toall elements. ...
box-sizing - CSS: Cascading Style Sheets
0px wide. The content box can't be negative and is floored to 0, making it impossible to use border-box to make the element disappear. Here the dimensions of the element are calculated as: width = border + padding + width of the content, and height = border + padding + height of the content. Formal definition Initial valuecontent-boxApplies toall elements that accept width or heightInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax content-box | border-box Examples Box sizes with content-box and border-box This example shows how different box-sizing values alter the rendered size of two otherwise identical elements. HTML <div class="content-box">Content box</div> <br> <div class="border-box">Border box</div> CSS div { width: 160px; height: 80px; padding: 20px; ...
break-after - CSS: Cascading Style Sheets
er auto auto left left right right avoid avoid always page The always value of page-break-* was implemented by browsers as a page break, and not as a column break. Therefore the aliasing is to page, rather than the always value in the Level 4 spec. ...
break-before - CSS: Cascading Style Sheets
re auto auto left left right right avoid avoid always page The always value of page-break-* was implemented by browsers as a page break, and not as a column break. Therefore the aliasing is to page, rather than the always value in the Level 4 spec. ...
break-inside - CSS: Cascading Style Sheets
e legacy page-break-inside property should be treated by browsers as an alias of break-inside. This ensures that sites using page-break-inside continue to work as designed. A subset of values should be aliased as follows: page-break-inside break-inside auto auto avoid avoid Formal definition Initial valueautoApplies toblock-level elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax auto | avoid | avoid-page | avoid-column | avoid-region Examples Avoiding breaking inside a figure In the following example we have a container that contains an <h1> spanning all columns (achieved using column-span: all) and a series of paragraphs laid out in multiple columns using column-width: 200px. We also have a <figure> containing an imag...
caption-side - CSS: Cascading Style Sheets
ld be positioned below the table, while the width and horizontal alignment behavior are not bound to the table's horizontal layout. The CSS 2.1 specification notes that the CSS 2 specification described a different behavior for the bottom value, which will be reintroduced by this value in a future specification. ...
caret-color - CSS: Cascading Style Sheets
y and contrast with the surrounding content, taking into account the value of currentcolor, the background, shadows, and other factors. Note: While user agents may use currentcolor (which is usually animatable) for the auto value, auto is not interpolated in transitions and animations. <color> The color of the caret. ...
clear - CSS: Cascading Style Sheets
Web › CSS › clear
r floats on start side of its containing block, that is the left floats on ltr scripts and the right floats on rtl scripts. inline-end Is a keyword indicating that the element is moved down to clear floats on end side of its containing block, that is the right floats on ltr scripts and the left floats on rtl scripts. Formal definition Initial valuenoneApplies toblock-level elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | left | right | both | inline-start | inline-end Examples clear: left HTML <div class="wrapper"> <p class="black">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus sit amet diam. Duis mattis varius dui. Suspendisse eget dolor.</p> <p class="red">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p> <p clas...
clip-path - CSS: Cascading Style Sheets
Web › CSS › clip-path
the nearest SVG viewport as the reference box. If a viewBox attribute is specified for the element creating the SVG viewport, the reference box is positioned at the origin of the coordinate system established by the viewBox attribute and the dimension of the size of the reference box is set to the width and height values of the viewBox attribute. none No clipping path is created. Note: A computed value other than none results in the creation of a new stacking context the same way that CSS opacity does for values other than 1. Formal definition Initial valuenoneApplies toall elements; In SVG, it applies to container elements excluding the defs element and all graphics elementsInheritednoPercentagesrefer to reference box when specified, otherwise border-boxComputed valueas specified, but with ...
clip - CSS: Cascading Style Sheets
Web › CSS › clip
top>, <right>, <bottom>, and <left> values may be either a <length> or auto. If any side's value is auto, the element is clipped to that side's inside border edge. auto The element does not clip (default). This is different from rect(auto, auto, auto, auto), which clips to the element's inside border edges. ...
color-adjust - CSS: Cascading Style Sheets
low them to control the use of color and images will take priority over the value of color-adjust. In other words, there isn't any guarantee that color-adjust will do anything. Not only can the user override the behavior, but each user agent is allowed to decide for itself how to handle color-adjust in any given situation. Formal definition Initial valueeconomyApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax economy | exact Examples Preserving low contrast In this example, a box is shown which uses a background-image and a translucent linear-gradient() function atop a black background color to have a dark blue gradient behind medium red text. For whatever reason, this is the desired appearance in any rendering environment, including on paper, so we...
color - CSS: Cascading Style Sheets
Web › CSS › color
such as headings. Large text is defined as 18.66px and bold or larger, or 24px or larger. WebAIM: Color Contrast Checker MDN Understanding WCAG, Guideline 1.4 explanations Understanding Success Criterion 1.4.3 | W3C Understanding WCAG 2.0 Formal definition Initial valueVaries from one browser to anotherApplies toall elements. It also applies to ::first-letter and ::first-line.InheritedyesComputed valueIf the value is translucent, the computed value will be the rgba() corresponding one. If it isn't, it will be the rgb() corresponding one. The transparent keyword maps to rgba(0,0,0,0).Animation typea color Formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <...
column-count - CSS: Cascading Style Sheets
by other CSS properties, such as column-width. <integer> Is a strictly positive <integer> describing the ideal number of columns into which the content of the element will be flowed. If the column-width is also set to a non-auto value, it merely indicates the maximum allowed number of columns. Formal definition Initial valueautoApplies toBlock containers except table wrapper boxesInheritednoComputed valueas specifiedAnimation typean integer Formal syntax <integer> | auto Examples Splitting a paragraph across three columns HTML <p class="content-box"> This is a bunch of text split into three columns using the CSS `column-count` property. The text is equally distributed over the columns. </p> CSS .content-box { column-count: 3; } Result Specifications Specification ...
column-fill - CSS: Cascading Style Sheets
Content is equally divided between columns. In fragmented contexts, such as paged media, only the last fragment is balanced. Therefore in paged media, only the last page would be balanced. balance-all Content is equally divided between columns. In fragmented contexts, such as paged media, all fragments are balanced. Formal definition Initial valuebalanceApplies tomulticol elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax auto | balance | balance-all Examples Splitting text evenly across columns HTML <p class="content-box"> This is a bunch of text split into multiple columns. The CSS `column-fill` property is used to spread the contents evenly across all the columns. </p> CSS .content-box { column-count: 4; column-rule: 1px solid black; column-...
column-gap (grid-column-gap) - CSS: Cascading Style Sheets
en columns, defined as a <length>. The <length> property's value must be non-negative. <percentage> The size of the gap between columns, defined as a <percentage>. The <percentage> property's value must be non-negative. ...
column-rule-color - CSS: Cascading Style Sheets
olumn-rule-color: transparent; column-rule-color: hsla(0, 100%, 50%, 0.6); /* Global values */ column-rule-color: inherit; column-rule-color: initial; column-rule-color: unset; The column-rule-color property is specified as a single <color> value. Values <color> The color of the rule that separates columns. ...
column-rule-style - CSS: Cascading Style Sheets
-rule-style: inherit; column-rule-style: initial; column-rule-style: unset; The column-rule-style property is specified as a single <'border-style'> value. Values <'border-style'> Is a keyword defined by border-style describing the style of the rule. The styling must be interpreted as in the collapsing border model. Formal definition Initial valuenoneApplies tomulticol elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax <'border-style'> Examples Setting a dashed column rule HTML <p>This is a bunch of text split into three columns. The `column-rule-style` property is used to change the style of the line that is drawn between columns. Don't you think that's wonderful?</p> CSS p { column-count: 3; column-rule-style: dashed; } Result Specificat...
column-rule-width - CSS: Cascading Style Sheets
h: inherit; column-rule-width: initial; column-rule-width: unset; The column-rule-width property is specified as a single <'border-width'> value. Values <'border-width'> Is a keyword defined by border-width describing the width of the rule. It may be either a <length> or one of the thin, medium, or thick keywords. Formal definition Initial valuemediumApplies tomulticol elementsInheritednoComputed valuethe absolute length; 0 if the column-rule-style is none or hiddenAnimation typea length Formal syntax <'border-width'> Examples Setting a thick column rule HTML <p>This is a bunch of text split into three columns. The `column-rule-width` property is used to change the width of the line that is drawn between columns. Don't you think that's wonderful?</p> CSS p { column-count: 3; ...
column-rule - CSS: Cascading Style Sheets
th> or one of the three keywords, thin, medium, or thick. See border-width for details. <'column-rule-style'> See border-style for possible values and details. <'column-rule-color'> Is a <color> value. ...
column-span - CSS: Cascading Style Sheets
alues listed below. Values none The element does not span multiple columns. all The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appears. The element establishes a new block formatting context. Formal definition Initial valuenoneApplies toin-flow block-level elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | all Examples Making a heading span columns In this example, the heading is made to span across all the columns of the article. HTML <article> <h2>Header spanning all of the columns</h2> <p> The h2 should span all the columns. The rest of the text should be distributed among the columns. </p> <p>This is a bunch of text...
column-width - CSS: Cascading Style Sheets
ay be wider when necessary to fill available space, and narrower when the available space is too small. The value must be strictly positive or the declaration is invalid. Percentage values are also invalid. auto The width of the column is determined by other CSS properties, such as column-count. Formal definition Initial valueautoApplies toBlock containers except table wrapper boxesInheritednoComputed valuethe absolute length, zero or largerAnimation typea length Formal syntax <length> | auto Examples Setting column width in pixels HTML <p class="content-box"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ...
columns - CSS: Cascading Style Sheets
Web › CSS › columns
ich the element's content should be flowed, defined as an <integer> or the keyword auto. If neither this value nor the column's width are auto, it merely indicates the maximum allowable number of columns. See column-count. ...
contain - CSS: Cascading Style Sheets
Web › CSS › contain
side its bounds. If the containing box is offscreen, the browser does not need to paint its contained elements -- these must also be offscreen as they are contained completely by that box. And if a descendant overflows the containing element's bounds, then that descendant will be clipped to the containing element's border-box. ...
content - CSS: Cascading Style Sheets
Web › CSS › content
the content conveys information that is critical to understanding the page's purpose, it is better to include it in the main document. Accessibility support for CSS generated content - Tink Explanation of WCAG, Guideline 1.3 - MDN Understanding Success Criterion 1.3.1 | W3C Understanding WCAG 2.0 Formal definition Initial valuenormalApplies to::before and ::after pseudo-elementsInheritednoComputed valueOn elements, always computes to normal. On ::before and ::after, if normal is specified, computes to none. Otherwise, for URI values, the absolute URI; for attr() values, the resulting string; for other keywords, as specified.Animation typediscrete Formal syntax normal | none | [ <content-replacement> | <content-list> ] [/ <string> ]?where <content-replacement> = <image><content-list> = [ <strin...
counter-increment - CSS: Cascading Style Sheets
me-number pair separated by a space. The keyword value none. Values <custom-ident> The name of the counter to increment. <integer> The value to add to the counter. Defaults to 1 if not specified. none No counter must be incremented. This is used as the default value, or to cancel an increment in more specific rules. ...
counter-reset - CSS: Cascading Style Sheets
space. The keyword value none. Values <custom-ident> The name of the counter to reset. <integer> The value to reset the counter to on each occurrence of the element. Defaults to 0 if not specified. none No counter reset is to be performed. This can be used to override a counter-reset defined in a less specific rule. ...
counter-set - CSS: Cascading Style Sheets
counter of the given name on the element, the element will create a new counter of the given name with a starting value of 0 (though it may then immediately set or increment that value to something different). none No counter set is to be performed. This can be used to override a counter-set defined in a less specific rule. ...
cursor - CSS: Cascading Style Sheets
Web › CSS › cursor
Usage notes Although the specification does not define any size limitations for cursor, individual user agents may choose to do so. Cursor changes using images which are outside the size range supported by the browser will generally just be ignored. Check the Browser compatibility table for any notes on cursor size limits. ...
direction - CSS: Cascading Style Sheets
Web › CSS › direction
on: inherit; direction: initial; direction: unset; Values ltr Text and other elements go from left to right. This is the default value. rtl Text and other elements go from right to left. For the direction property to have any effect on inline-level elements, the unicode-bidi property's value must be embed or override. Formal definition Initial valueltrApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax ltr | rtl Examples Setting right-to-left direction blockquote { direction: rtl; } Specifications Specification Status Comment CSS Writing Modes Module Level 3The definition of 'direction' in that specification. Proposed Recommendation No change. CSS Level 2 (Revision 1)The definition of 'direction...
display - CSS: Cascading Style Sheets
Web › CSS › display
ble to no longer be announced properly by screen reading technology. Short note on what CSS display properties do to table semantics -- The Paciello Group Hidden content for better a11y | Go Make Things MDN Understanding WCAG, Guideline 1.3 explanations Understanding Success Criterion 1.3.1 | W3C Understanding WCAG 2.0 Formal definition Initial valueinlineApplies toall elementsInheritednoComputed valueas the specified value, except for positioned and floating elements and the root element. In both cases the computed value may be a keyword other than the one specified.Animation typediscrete Formal syntax [ <display-outside> | <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>where <display-outside> = block | inline | run-in<display-inside> = flow | ...
empty-cells - CSS: Cascading Style Sheets
pty-cells: show; empty-cells: hide; /* Global values */ empty-cells: inherit; empty-cells: initial; empty-cells: unset; The empty-cells property is specified as one of the keyword values listed below. Values show Borders and backgrounds are drawn like in normal cells. hide No borders or backgrounds are drawn. ...
filter - CSS: Cascading Style Sheets
Web › CSS › filter
, 238); text-align: left; font-weight: bold; } table.standard-table td { padding: 5px; border: 1px solid rgb(204, 204, 204); text-align: left; vertical-align: top; width:25%; height:auto; } #img3 { height:100%; } Formal definition Initial valuenoneApplies toall elements; In SVG, it applies to container elements excluding the defs element and all graphics elementsInheritednoComputed valueas specifiedAnimation typea filter function list Formal syntax none | <filter-function-list>where <filter-function-list> = [ <filter-function> | <url> ]+where <filter-function> = <blur()> | <brightness()> | <contrast()> | <drop-shadow()> | <grayscale()> | <hue-rotate()> | <invert()> | <opacity()> | <saturate()> | <sepia()>where <blur()> = blur( <length> )<brightness()> = brightness( <number-perc...
flex-basis - CSS: Cascading Style Sheets
22. Then, that change was reverted in bug 1093316, so auto once again means "look at my width or height property"; and a new content keyword is being introduced to trigger automatic sizing. (bug 1105111 covers adding that keyword). ...
flex-direction - CSS: Cascading Style Sheets
he visual (CSS) order is important, then screen reader users will not have access to the correct reading order. ...
flex-flow - CSS: Cascading Style Sheets
Web › CSS › flex-flow
'flex-wrap'> */ flex-flow: row nowrap; flex-flow: column wrap; flex-flow: column-reverse wrap-reverse; /* Global values */ flex-flow: inherit; flex-flow: initial; flex-flow: unset; Values See flex-direction and flex-wrap for details on the values. Formal definition Initial valueas each of the properties of the shorthand:flex-direction: rowflex-wrap: nowrapApplies toflex containersInheritednoComputed valueas each of the properties of the shorthand:flex-direction: as specifiedflex-wrap: as specifiedAnimation typediscrete Formal syntax <'flex-direction'> | <'flex-wrap'> Examples Setting column-reverse and wrap element { /* Main-axis is the block direction with reversed main-start and main-end. Flex items are laid out in multiple lines */ flex-flow: column-reverse wrap; } Specifications ...
flex-grow - CSS: Cascading Style Sheets
Web › CSS › flex-grow
ll receive the same share of remaining space, otherwise it is distributed according to the ratio defined by the different flex grow factors. flex-grow is used alongside the other flex properties flex-shrink and flex-basis, and normally defined using the flex shorthand to ensure all values are set. Formal definition Initial value0Applies toflex items, including in-flow pseudo-elementsInheritednoComputed valueas specifiedAnimation typea number Formal syntax <number> Examples Setting flex item grow factor HTML <h4>This is a Flex-Grow</h4> <h5>A,B,C and F are flex-grow:1 . D and E are flex-grow:2 .</h5> <div id="content"> <div class="box" style="background-color:red;">A</div> <div class="box" style="background-color:lightblue;">B</div> <div class="box" style="background-color:yellow;">C</div...
flex-shrink - CSS: Cascading Style Sheets
equest. Syntax /* <number> values */ flex-shrink: 2; flex-shrink: 0.6; /* Global values */ flex-shrink: inherit; flex-shrink: initial; flex-shrink: unset; The flex-shrink property is specified as a single <number>. Values <number> See <number>. Negative values are invalid. Defaults to 1. Formal definition Initial value1Applies toflex items, including in-flow pseudo-elementsInheritednoComputed valueas specifiedAnimation typea number Formal syntax <number> Examples Setting flex item shrink factor HTML <p>The width of content is 500px; the flex-basis of the flex items is 120px.</p> <p>A, B, C have flex-shrink:1 set. D and E have flex-shrink:2 set</p> <p>The width of D and E is less than the others.</p> <div id="content"> <div class="box" style="background-color:red;">A</div> <div cl...
flex-wrap - CSS: Cascading Style Sheets
Web › CSS › flex-wrap
ction value. This is the default value. wrap The flex items break into multiple lines. The cross-start is either equivalent to start or before depending flex-direction value and the cross-end is the opposite of the specified cross-start. wrap-reverse Behaves the same as wrap but cross-start and cross-end are permuted. ...
flex - CSS: Cascading Style Sheets
Web › CSS › flex
one { flex: none; } .four { flex: 4; } .two { flex: 2; } .one { flex: 1; } By default flex items don't shrink below their minimum content size. To change this, set the item's min-width or min-height. ...
font-family - CSS: Cascading Style Sheets
-family: Goudy Bookletter 1911, sans-serif; font-family: Red/Black, sans-serif; font-family: "Lucida" Grande, sans-serif; font-family: Ahem!, sans-serif; font-family: test@foo, sans-serif; font-family: #POUND, sans-serif; font-family: Hawaii 5-0, sans-serif; Formal definition Initial valuedepends on user agentApplies toall elements. ...
font-feature-settings - CSS: Cascading Style Sheets
sitive integer. The two keywords on and off are synonyms for 1 and 0 respectively. If no value is set, the default is 1. For non-Boolean OpenType features (e.g. stylistic alternates), the value implies a particular glyph to be selected; for Boolean values, it is a switch. Formal definition Initial valuenormalApplies toall elements. ...
font-kerning - CSS: Cascading Style Sheets
should be used or not. For example, some browsers will disable kerning on small fonts, since applying it could harm the readability of text. normal Font kerning information stored in the font must be applied. none Font kerning information stored in the font is disabled. Formal definition Initial valueautoApplies toall elements. It also applies to ::first-letter and ::first-line.InheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | normal | none Examples Enabling and disabling kerning HTML <div id="kern"></div> <div id="nokern"></div> <textarea id="input">AV T. ij</textarea> CSS div { font-size: 2rem; font-family: serif; } #nokern { font-kerning: none; } #kern { font-kerning: normal; } JavaScript let input = document.getElementById('input'); let ker...
font-language-override - CSS: Cascading Style Sheets
ibute. This is the default value. <string> Tells the browser to use font glyphs that are appropriate for the language specified by the string. The string must match a language tag found in the OpenType language system. For example, "ENG" is English, and "KOR" is Korean. Formal definition Initial valuenormalApplies toall elements. ...
font-optical-sizing - CSS: Cascading Style Sheets
ion axis is represented by opsz in font-variation-settings. When optical sizing is used, small text sizes are often rendered with thicker strokes and larger serifs, whereas larger text is often rendered more delicately with more contrast between thicker and thinner strokes. Formal definition Initial valueautoApplies toall elements. It also applies to ::first-letter and ::first-line.InheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | none Examples Disabling optical sizing <p class="optical-sizing">This paragraph is optically sized. This is the default across browsers.</p> <p class="no-optical-sizing">This paragraph is not optically sized. You should see a difference in supporting browsers.</p> @font-face { src: url('AmstelvarAlpha-VF.ttf'); font-family:'A...
font-size-adjust - CSS: Cascading Style Sheets
y be the aspect ratio (ratio of x-height to font size) of the first choice font-family. This means that the first-choice font, when available, will appear the same size in browsers, whether or not they support font-size-adjust. 0 yields text of zero height (hidden text). Formal definition Initial valuenoneApplies toall elements. ...
font-size - CSS: Cascading Style Sheets
Web › CSS › font-size
h looks like this: <span>Outer <span>inner</span> outer</span> In this example, the words "outer inner outer" are all displayed at 16px (assuming that the browser's font-size has been left at the default value of 10px). Formal definition Initial valuemediumApplies toall elements. ...
font-smooth - CSS: Cascading Style Sheets
oothing. It only works on Mac OS X/macOS. auto - Allow the browser to select an optimization for font smoothing, typically grayscale. grayscale - Render text with grayscale antialiasing, as opposed to the subpixel. Switching from subpixel rendering to antialiasing for light text on dark backgrounds makes it look lighter. Formal definition Initial valueautoApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | never | always | <absolute-size> | <length>where <absolute-size> = xx-small | x-small | small | medium | large | x-large | xx-large | xxx-large Examples Basic usage example The following example shows the Safari/Chromium and Firefox equivalents that turn on font-smoothing on macOS. In both cases the smoothed font should look slightly lig...
font-stretch - CSS: Cascading Style Sheets
rmal face. All values of font-stretch less than 100% select the condensed face, while all other values select the normal face. League Mono Variable is a variable font that offers something like a continuous range of widths for different percentage values of font-stretch. Formal definition Initial valuenormalApplies toall elements. It also applies to ::first-letter and ::first-line.InheritedyesComputed valueas specifiedAnimation typea font stretch Formal syntax <font-stretch-absolute>where <font-stretch-absolute> = normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | <percentage> Examples Setting font stretch percentages Note that this example will only work in browsers that support <percentage> values. HTML <div...
font-style - CSS: Cascading Style Sheets
ut', update); update(); Accessibility concerns Large sections of text set with a font-style value of italic may be difficult for people with cognitive concerns such as Dyslexia to read. MDN Understanding WCAG, Guideline 1.4 explanations W3C Understanding WCAG 2.1 Formal definition Initial valuenormalApplies toall elements. ...
font-synthesis - CSS: Cascading Style Sheets
nts do not. Fonts used for Chinese, Japanese, Korean and other logographic scripts tend not to include these variants, and synthesizing them may impede the legibility of the text. In these cases, it may be desirable to switch off the browser's default font-synthesis. Formal definition Initial valueweight styleApplies toall elements. ...
font-variant-alternates - CSS: Cascading Style Sheets
). Be aware that some existing fonts don't follow this advice. annotation() This function enables annotations, like circled digits or inverted characters. The parameter is a font-specific name mapped to a number. It corresponds to the OpenType value nalt, like nalt 2. Formal definition Initial valuenormalApplies toall elements. ...
font-variant-caps - CSS: Cascading Style Sheets
ccessibility concerns Large sections of text set with a font-variant value of all-small-caps or all-petite-caps may be difficult for people with cognitive concerns such as Dyslexia to read. MDN Understanding WCAG, Guideline 1.4 explanations W3C Understanding WCAG 2.1 Formal definition Initial valuenormalApplies toall elements. ...
font-variant-east-asian - CSS: Cascading Style Sheets
h activating the set of East Asian characters which vary in width. It corresponds to the OpenType values pwid. full-width activating the set of East Asian characters which are all of the same, roughly square, width metric. It corresponds to the OpenType values fwid. Formal definition Initial valuenormalApplies toall elements. ...
font-variant-ligatures - CSS: Cascading Style Sheets
nding letters. These values correspond to the OpenType values calt. Two values are possible: contextual specifies that the contextual alternates are to be used. Note that the keyword normal usually activates these ligatures too. no-contextual prevents their use. Formal definition Initial valuenormalApplies toall elements. ...
font-variant-numeric - CSS: Cascading Style Sheets
smaller and separated by a slash. It corresponds to the OpenType values frac. stacked-fractions activating the set of figures where the numerator and denominator are made smaller, stacked and separated by a horizontal line. It corresponds to the OpenType values afrc. Formal definition Initial valuenormalApplies toall elements. ...
font-variant-position - CSS: Cascading Style Sheets
e for a character, all the characters in the run are rendered using synthesized glyphs. super Activates superscript alternate glyphs. If, in a given run, one such glyph is not available for a character, all the characters in the run are rendered using synthesized glyphs. Formal definition Initial valuenormalApplies toall elements. ...
font-variant - CSS: Cascading Style Sheets
lashed-zero. <east-asian-variant-values>, <east-asian-width-values>, ruby Specifies the keywords related to the font-variant-east-asian longhand property. The possible values are: jis78, jis83, jis90, jis04, simplified, traditional, full-width, proportional-width, ruby. Formal definition Initial valuenormalApplies toall elements. ...
font-variation-settings - CSS: Cascading Style Sheets
at it is up to date. For example Linux OSes need the latest Linux Freetype version, and macOS prior to 10.13 does not support variable fonts. If your operating system is not up to date, you will not be able to use variable fonts in web pages or the Firefox Developer Tools. Formal definition Initial valuenormalApplies toall elements. It also applies to ::first-letter and ::first-line.InheritedyesComputed valueas specifiedAnimation typea transform Formal syntax normal | [ <string> <number> ]# Examples You can find a number of other variable fonts examples at our Variable fonts guide, v-fonts.com, and axis-praxis.org. Weight (wght) The following live example's CSS can be edited to allow you to play with font weight values. Slant (slnt) The following live example's CSS can be edited to allow you...
font-weight - CSS: Cascading Style Sheets
fficulty reading text set with a font-weight value of 100 (Thin/Hairline) or 200 (Extra Light), especially if the font has a low contrast color ratio. MDN Understanding WCAG, Guideline 1.4 explanations Understanding Success Criterion 1.4.8 | W3C Understanding WCAG 2.0 Formal definition Initial valuenormalApplies toall elements. ...
font - CSS: Cascading Style Sheets
Web › CSS › font
hand:font-style: normalfont-variant: normalfont-weight: normalfont-stretch: normalfont-size: mediumline-height: normalfont-family: depends on user agentApplies toall elements. ...
gap (grid-gap) - CSS: Cascading Style Sheets
Web › CSS › gap
<length> or a <percentage>. Values <length> Is the width of the gutter separating the grid lines. <percentage> Is the width of the gutter separating the grid lines, relative to the dimension of the element. ...
grid-area - CSS: Cascading Style Sheets
Web › CSS › grid-area
hat name for the purpose of counting this span. If the <integer> is omitted, it defaults to 1. Negative integers or 0 are invalid. ...
grid-auto-columns - CSS: Cascading Style Sheets
m. As a minimum it represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track. Note: auto track sizes (and only auto track sizes) can be streched by the align-content and justify-content properties. ...
grid-auto-flow - CSS: Cascading Style Sheets
y larger items. If it is omitted, a "sparse" algorithm is used, where the placement algorithm only ever moves "forward" in the grid when placing items, never backtracking to fill holes. This ensures that all of the auto-placed items appear "in order", even if this leaves holes that could have been filled by later items. ...
grid-auto-rows - CSS: Cascading Style Sheets
. As a minimum it represents the largest minimum size (as specified by min-width/min-height) of the grid items occupying the grid track. Note: auto track sizes (and only auto track sizes) can be stretched by the align-content and justify-content properties. ...
grid-column-end - CSS: Cascading Style Sheets
xplicit grid corresponding to the search direction are assumed to have that name for the purpose of counting this span. If the <integer> is omitted, it defaults to 1. Negative integers or 0 are invalid. The <custom-ident> cannot take the span value. ...
grid-column-start - CSS: Cascading Style Sheets
plicit grid corresponding to the search direction are assumed to have that name for the purpose of counting this span. If the <integer> is omitted, it defaults to 1. Negative integers and 0 are invalid. The <custom-ident> cannot take the span value. ...
grid-column - CSS: Cascading Style Sheets
rst row/col of the grid unless explicitly annotated with -ms-grid-column and -ms-grid-row. One can use a little JavaScript to enable automatic annotation: source repository. ...
grid-row-end - CSS: Cascading Style Sheets
ist, all implicit grid lines on the side of the explicit grid corresponding to the search direction are assumed to have that name for the purpose of counting this span. If the <integer> is omitted, it defaults to 1. Negative integers or 0 are invalid. ...
grid-row-start - CSS: Cascading Style Sheets
licit grid, corresponding to the search direction, are assumed to have that name for the purpose of counting this span. If the <integer> is omitted, it defaults to 1. Negative integers or 0 are invalid. The <custom-ident> cannot take the span value. ...
grid-row - CSS: Cascading Style Sheets
Web › CSS › grid-row
the first row/col of the grid unless explicitly annotated with -ms-grid-column and -ms-grid-row. One can use a little JavaScript to enable automatic annotation: source repository. ...
grid-template-areas - CSS: Cascading Style Sheets
ny named grid areas. <string>+ A row is created for every separate string listed, and a column is created for each cell in the string. Multiple named cell tokens within and between rows create a single named grid area that spans the corresponding grid cells. Unless those cells form a rectangle, the declaration is invalid. ...
grid-template-columns - CSS: Cascading Style Sheets
that axis. Rather than being specified explicitly, the sizes of the grid rows/columns will be taken from the parent grid's definition. The subgrid value is from Level 2 of the Grid specification and currently only has implementation in Firefox 71 and onwards. ...
grid-template-rows - CSS: Cascading Style Sheets
that axis. Rather than being specified explicitly, the sizes of the grid rows/columns will be taken from the parent grid's definition. The subgrid value is from Level 2 of the Grid specification and currently only has implementation in Firefox 71 and onwards. ...
grid-template - CSS: Cascading Style Sheets
eperately. ...
grid - CSS: Cascading Style Sheets
Web › CSS › grid
p: normalrow-gap: normalApplies togrid containersInheritednoPercentagesas each of the properties of the shorthand:grid-template-rows: refer to corresponding dimension of the content areagrid-template-columns: refer to corresponding dimension of the content areagrid-auto-rows: refer to corresponding dimension of the content areagrid-auto-columns: refer to corresponding dimension of the content areaComputed valueas each of the properties of the shorthand:grid-template-rows: as specified, but with relative lengths converted into absolute lengthsgrid-template-columns: as specified, but with relative lengths converted into absolute lengthsgrid-template-areas: as specifiedgrid-auto-rows: the percentage as specified or the absolute lengthgrid-auto-columns: the percentage as specified or the absolute lengthgrid...
hanging-punctuation - CSS: Cascading Style Sheets
or quote at the start of the first formatted line of an element hangs. last A closing bracket or quote at the end of the last formatted line of an element hangs. force-end A stop or comma at the end of a line hangs. allow-end A stop or comma at the end of a line hangs if it does not otherwise fit prior to justification. Formal definition Initial valuenoneApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax none | [ first | [ force-end | allow-end ] | last ] Examples Setting opening and closing quotes to hang HTML <p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur dignissim nunc mauris, et sollicitudin est scelerisque sed. Praesent laoreet tortor massa, sit amet vulputate nulla pharetra ut."</p> CSS p { hanging-punctuation...
height - CSS: Cascading Style Sheets
Web › CSS › height
and column groupsInheritednoPercentagesThe percentage is calculated with respect to the height of the generated box's containing block. If the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the value computes to auto. ...
hyphens - CSS: Cascading Style Sheets
Web › CSS › hyphens
he hyphen is still rendered. U+00AD (SHY) An invisible, "soft" hyphen. This character is not rendered visibly; instead, it marks a place where the browser should break the word if hyphenation is necessary. In HTML, use &shy; to insert a soft hyphen. When the HTML <wbr> element leads to a line break, no hyphen is added. Formal definition Initial valuemanualApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax none | manual | auto Examples Specifying text hyphenation This example uses three classes, one for each possible configuration of the hyphens property. HTML <dl> <dt><code>none</code>: no hyphen; overflow if needed</dt> <dd lang="en" class="none">An extreme&shy;ly long English word</dd> <dt><code>manual</code>: hyphen only at &amp;hyphe...
image-orientation - CSS: Cascading Style Sheets
to specify rotation. This includes any user-directed changes to the orientation of the image, or changes required for printing in portrait versus landscape orientation. If used in conjunction with other CSS properties, such as a <transform-function>, any image-orientation rotation is applied before any other transformations. ...
image-rendering - CSS: Cascading Style Sheets
hm must be used, so that the image appears to be composed of large pixels. When scaling down, this is the same as auto. Note: The values optimizeQuality and optimizeSpeed present in an early draft (and coming from its SVG counterpart image-rendering) are defined as synonyms for the smooth and pixelated values respectively. Formal definition Initial valueautoApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | crisp-edges | pixelated Examples Setting image scaling algorithms In practical use, the pixelated and crisp-edges rules can be combined to provide some fallback for each other. (Just prepend the actual rules with the fallback.) The Canvas API can provide a fallback solution for pixelated through manual image data manipulation or with imag...
ime-mode - CSS: Cascading Style Sheets
Web › CSS › ime-mode
this recommendation by placing the following CSS into their user stylesheet: input[type=password] { ime-mode: auto !important; } The Mac version of Gecko 1.9 (Firefox 3) can't recover the previous state of the IME when a field for which it is disabled loses focus, so Mac users may get grumpy when you use the disabled value. Formal definition Initial valueautoApplies totext fieldsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax auto | normal | active | inactive | disabled Examples Disabling input method support This example disables input method support for a form field. In the past, this was commonly used on fields that entered data into databases which didn't support extended character sets. <input type="text" name="name" value="initial value" style="ime-mode: disa...
inherit - CSS: Cascading Style Sheets
Web › CSS › inherit
It can be applied to any CSS property, including the CSS shorthand all. For inherited properties, this reinforces the default behavior, and is only needed to override another rule. For non-inherited properties, this specifies a behavior that typically makes relatively little sense and you may consider using initial instead, or unset on the all property. Inheritance is always from the parent element in the document tree, even when the parent element is not the containing block. ...
Inheritance - CSS: Cascading Style Sheets
In CSS, inheritance controls what happens when no value is specified for a property on an element. CSS properties can be categorized in two types: inherited properties, which by default are set to the computed value of the parent element non-inherited properties, which by default are set to initial value of the property Refer to any CSS property definition to see whether a specific property inherits by default ("Inherited: yes") or not ("Inherited: no"). Inherited properties When no value for an inherited property has been specified on an element, the element gets the computed value of that property on its parent element. Only the root element of the document gets the initial value given in the property's summary. A typical example of an inherited property is the color property. Given the sty...
initial-letter-align - CSS: Cascading Style Sheets
baseline of the initial letter aligns with the baseline of the Nth text baseline. hanging The hanging baseline of the initial letter aligns with the hanging baseline of the first line of text. ideographic The initial letter is centered in the N-line area. ...
initial-letter - CSS: Cascading Style Sheets
s. Negative values are not allowed. <integer> Defines the number of lines the initial letter should sink when the size of it is given. Values must be greater than zero. If omitted, it duplicates the size value, floored to the nearest positive whole number. ...
inline-size - CSS: Cascading Style Sheets
nline-size relates to the height of the element; otherwise, it relates to the width of the element. A related property is block-size, which defines the other dimension of the element. Values The inline-size property takes the same values as the width and height properties. ...
inset-block-end - CSS: Cascading Style Sheets
he containing block */ inset-block-end: 10%; /* Keyword value */ inset-block-end: auto; /* Global values */ inset-block-end: inherit; inset-block-end: initial; inset-block-end: unset; Syntax Values The inset-block-end property takes the same values as the left property. ...
inset-block-start - CSS: Cascading Style Sheets
g block */ inset-block-start: 10%; /* Keyword value */ inset-block-start: auto; /* Global values */ inset-block-start: inherit; inset-block-start: initial; inset-block-start: unset; Syntax Values The inset-block-start property takes the same values as the left property. ...
inset-block - CSS: Cascading Style Sheets
inset-block: inherit; inset-block: initial; inset-block: unset; Constituent properties This property is a shorthand for the following CSS properties: inset-block-end inset-block-start Syntax Values The inset-block property takes the same values as the left property. ...
inset-inline-end - CSS: Cascading Style Sheets
nd: auto; /* Global values */ inset-inline-end: inherit; inset-inline-end: initial; inset-inline-end: unset; The shorthand for inset-inline-start and inset-inline-end is inset-inline. Syntax Values The inset-inline-end property takes the same values as the left property. ...
inset-inline-start - CSS: Cascading Style Sheets
; /* Global values */ inset-inline-start: inherit; inset-inline-start: initial; inset-inline-start: unset; The shorthand for inset-inline-start and inset-inline-end is inset-inline. Syntax Values The inset-inline-start property takes the same values as the left property. ...
inset-inline - CSS: Cascading Style Sheets
-inline: inherit; inset-inline: initial; inset-inline: unset; Constituent properties This property is a shorthand for the following CSS properties: inset-inline-end inset-inline-start Syntax Values The inset-inline property takes the same values as the left property. ...
inset - CSS: Cascading Style Sheets
Web › CSS › inset
the width (left/right) or height (top/bottom) of the containing block */ inset: 10% 5% 5% 5%; /* Keyword value */ inset: auto; /* Global values */ inset: inherit; inset: initial; inset: unset; Syntax Values The inset property takes the same values as the left property. ...
isolation - CSS: Cascading Style Sheets
Web › CSS › isolation
property is specified as one of the keyword values listed below. Values auto A new stacking context is created only if one of the properties applied to the element requires it. isolate A new stacking context must be created. Formal definition Initial valueautoApplies toAll elements. ...
justify-content - CSS: Cascading Style Sheets
ent container causing data loss, the item is instead aligned as if the alignment mode were start. unsafe Used alongside an alignment keyword. Regardless of the relative sizes of the item and alignment container, and regardless of whether overflow which causes data loss might happen, the given alignment value is honored. ...
justify-items - CSS: Cascading Style Sheets
ess of the relative sizes of the item and alignment container, the given alignment value is honored. legacy Makes the value inherited by the box descendants. Note that if a descendant has a justify-self: auto value, the legacy keyword is not considered by the descend, only the left, right, or center value associated to it. ...
justify-self - CSS: Cascading Style Sheets
fills the alignment container. safe If the size of the item overflows the alignment container, the item is instead aligned as if the alignment mode were start. unsafe Regardless of the relative sizes of the item and alignment container, the given alignment value is honored. ...
letter-spacing - CSS: Cascading Style Sheets
erent font families have different character widths. There is no one value that can ensure all font families automatically maintain their legibility. MDN Understanding WCAG, Guideline 1.4 explanations Understanding Success Criterion 1.4.8 | W3C Understanding WCAG 2.0 Formal definition Initial valuenormalApplies toall elements. ...
line-break - CSS: Cascading Style Sheets
ation character or preserved white spaces, or in the middle of words, disregarding any prohibition against line breaks, even those introduced by characters with the GL, WJ, or ZWJ character class or mandated by the word-break property. The different wrapping opportunities must not be prioritized. Hyphenation is not applied. Formal definition Initial valueautoApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | loose | normal | strict | anywhere Examples Setting text wrapping See whether the text is wrapped before "?", "?" and "?". HTML <div lang="ja"> <p class="wrapbox auto">auto:<br>??????????????????<br>?????????????????????</p> <p class="wrapbox loose">loose:<br>??????????????????<br>?????????????????????</p> <p class="wrapbox norma...
line-height-step - CSS: Cascading Style Sheets
operty is set, line box heights are rounded up to the closest multiple of the unit. /* Point values */ line-height-step: 18pt; Syntax The line-height-step property is specified as any one of the following: a <length>. Values <length> The specified <length> is used in the calculation of the line box height step. Formal definition Initial value0Applies toblock containersInheritedyesComputed valueabsolute <length>Animation typediscrete Formal syntax <length> Examples Setting step unit for line box height In the following example, the height of line box in each paragraph is rounded up to the step unit. The line box in <h1> does not fit into one step unit and thus occupies two, but it is still centered within the two step unit. :root { font-size: 12pt; --my-grid: 18pt; line-heigh...
list-style-image - CSS: Cascading Style Sheets
style-image: url('starsolid.gif'); /* Global values */ list-style-image: inherit; list-style-image: initial; list-style-image: unset; Values <url> Location of image to use as the marker. none Specifies that no image is used as the marker. If this value is set, the marker defined in list-style-type will be used instead. ...
list-style-position - CSS: Cascading Style Sheets
*/ list-style-position: inherit; list-style-position: initial; list-style-position: unset; The list-style-position property is specified as one of the keyword values listed below. Values inside The ::marker is the first element among the list item's contents. outside The ::marker is outside the principal block box. ...
list-style-type - CSS: Cascading Style Sheets
is unaffected by the bug fix and that list items are not improperly described. ...
list-style - CSS: Cascading Style Sheets
ul li::before { content: "\200B"; } VoiceOver and list-style-type: none - Unfettered Thoughts MDN Understanding WCAG, Guideline 1.3 explanations Understanding Success Criterion 1.3.1 | W3C Understanding WCAG 2.0 Formal definition Initial valueas each of the properties of the shorthand:list-style-type: disclist-style-position: outsidelist-style-image: noneApplies tolist itemsInheritedyesComputed valueas each of the properties of the shorthand:list-style-image: none or the image with its URI made absolutelist-style-position: as specifiedlist-style-type: as specifiedAnimation typediscrete Formal syntax <'list-style-type'> | <'list-style-position'> | <'list-style-image'> Examples Setting list style type and position HTML List 1 <ul class="one"> <li>List Item1</li> <li>List Item2</li> ...
margin-block-end - CSS: Cascading Style Sheets
pending on the values defined for writing-mode, direction, and text-orientation. It relates to margin-block-start, margin-inline-start, and margin-inline-end, which define the other margins of the element. Values The margin-block-end property takes the same values as the margin-left property. ...
margin-block-start - CSS: Cascading Style Sheets
pending on the values defined for writing-mode, direction, and text-orientation. It relates to margin-block-end, margin-inline-start, and margin-inline-end, which define the other margins of the element. Values The margin-block-start property takes the same values as the margin-left property. ...
margin-block - CSS: Cascading Style Sheets
on the values defined for writing-mode, direction, and text-orientation. Constituent properties This property is a shorthand for the following CSS properties: margin-block-end margin-block-start Syntax Values The margin-block property takes the same values as the margin-left property. ...
margin-bottom - CSS: Cascading Style Sheets
margin as a percentage, relative to the width of the containing block. auto The browser selects a suitable value to use. See margin. Formal definition Initial value0Applies toall elements, except elements with table display types other than table-caption, table and inline-table. ...
margin-inline-end - CSS: Cascading Style Sheets
gin-inline-end: inherit; margin-inline-end: initial; margin-inline-end: unset; It relates to margin-block-start, margin-block-end, and margin-inline-start, which define the other margins of the element. Values The margin-inline-end property takes the same values as the margin-left property. ...
margin-inline-start - CSS: Cascading Style Sheets
*/ margin-inline-start: auto; /* Global values */ margin-inline-start: inherit; It relates to margin-block-start, margin-block-end, and margin-inline-end, which define the other margins of the element. Values The margin-inline-start property takes the same values as the margin-left property. ...
margin-top - CSS: Cascading Style Sheets
margin as a percentage, relative to the width of the containing block. auto The browser selects a suitable value to use. See margin. Formal definition Initial value0Applies toall elements, except elements with table display types other than table-caption, table and inline-table. ...
margin-trim - CSS: Cascading Style Sheets
block-axis margins adjacent to the box's edges are truncated to zero. It also truncates any margins collapsed with such a margin. all Trims the margins of in-flow boxes and floats whose margins coincide with the container's content edge. Formal definition Initial valuenoneApplies toBlock containers and multi-column containers. ...
margin - CSS: Cascading Style Sheets
Web › CSS › margin
cation. Recommendation Initial definition. Initial valueas each of the properties of the shorthand:margin-bottom: 0margin-left: 0margin-right: 0margin-top: 0Applies toall elements, except elements with table display types other than table-caption, table and inline-table. ...
mask-border-mode - CSS: Cascading Style Sheets
it; mask-border-mode: initial; mask-border-mode: unset; Values luminance The luminance values of the mask border image are used as the mask values. alpha The alpha values of the mask border image are used as the mask values. Formal definition Initial valuealphaApplies toall elements; In SVG, it applies to container elements excluding the defs element and all graphics elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax luminance | alpha Examples Basic usage This property doesn't yet seem to have support anywhere. When browsers support it, it will specify the type of blending mode used for the mask border -- luminance or alpha: mask-border-mode: luminance; mask-border-mode: alpha; Specifications Specification Status Comment CSS M...
mask-border-outset - CSS: Cascading Style Sheets
apply to the top, right, bottom, and left in that order (clockwise). Values <length> The size of the mask border outset as a dimension. <number> The size of the mask border outset as a multiple of the corresponding border-width. Formal definition Initial value0Applies toall elements; In SVG, it applies to container elements excluding the defs element and all graphics elementsInheritednoComputed valueas specified, but with relative lengths converted into absolute lengthsAnimation typediscrete Formal syntax [ <length> | <number> ]{1,4} Examples Basic usage This property doesn't appear to be supported anywhere yet. When it eventually starts to be supported, it will serve to move the mask away from the inner edge of the element's border box -- you can use it to make the mask start from part ...
mask-border-repeat - CSS: Cascading Style Sheets
order. Tiles may be stretched to achieve the proper fit. space The source image's edge regions are tiled (repeated) to fill the gap between each border. Extra space will be distributed in between tiles to achieve the proper fit. Formal definition Initial valuestretchApplies toall elements; In SVG, it applies to container elements excluding the defs element and all graphics elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax [ stretch | repeat | round | space ]{1,2} Examples Basic usage This property doesn't appear to be supported anywhere yet. When it eventually starts to be supported, it will serve to define how the border mask slice will repeat around the border -- i.e. will it just repeat, or be scaled slightly so a whole number of slices fits, or be stretched ...
mask-border-slice - CSS: Cascading Style Sheets
kground image if the keyword fill is set. The mask-border-repeat, mask-border-width, and mask-border-outset properties determine how these regions are used to form the final mask border. Formal definition Initial value0Applies toall elements; In SVG, it applies to container elements excluding the defs element and all graphics elementsInheritednoPercentagesrefer to size of the mask border imageComputed valueas specifiedAnimation typediscrete Formal syntax <number-percentage>{1,4} fill?where <number-percentage> = <number> | <percentage> Examples Basic usage This property doesn't appear to be supported anywhere yet. When it eventually starts to be supported, it will serve to define the size of the slices taken from the source image, and used to create the border mask. mask-border-slice: 30 fill; ...
mask-border-source - CSS: Cascading Style Sheets
-gradient(to top, red, yellow); /* Global values */ mask-border-source: inherit; mask-border-source: initial; mask-border-source: unset; Values none No mask border is used. <image> Image reference to use for the mask border. ...
mask-border-width - CSS: Cascading Style Sheets
ever is applicable) of the corresponding mask-border-slice. If the image does not have the required intrinsic dimension, the corresponding border-width is used instead. Formal definition Initial valueautoApplies toall elements; In SVG, it applies to container elements excluding the defs element and all graphics elementsInheritednoPercentagesrelative to width/height of the mask border image areaComputed valueas specified, but with relative lengths converted into absolute lengthsAnimation typediscrete Formal syntax [ <length-percentage> | <number> | auto ]{1,4}where <length-percentage> = <length> | <percentage> Examples Basic usage This property doesn't appear to be supported anywhere yet. When it eventually starts to be supported, it will serve to define the width of the border mask -- setting th...
mask-border - CSS: Cascading Style Sheets
order-repeat: stretchmask-border-slice: 0mask-border-source: nonemask-border-width: autoApplies toall elements; In SVG, it applies to container elements excluding the defs element and all graphics elementsInheritednoPercentagesas each of the properties of the shorthand:mask-border-slice: refer to size of the mask border imagemask-border-width: relative to width/height of the mask border image areaComputed valueas each of the properties of the shorthand:mask-border-mode: as specifiedmask-border-outset: as specified, but with relative lengths converted into absolute lengthsmask-border-repeat: as specifiedmask-border-slice: as specifiedmask-border-source: as specified, but with <url> values made absolutemask-border-width: as specified, but with relative lengths converted into absolute lengthsAnimation type...
mask-clip - CSS: Cascading Style Sheets
Web › CSS › mask-clip
his keyword behaves the same as border-box. padding This keyword behaves the same as padding-box. content This keyword behaves the same as content-box. text This keyword clips the mask image to the text of the element. ...
mask-composite - CSS: Cascading Style Sheets
act The source is placed, where it falls outside of the destination. intersect The parts of source that overlap the destination, replace the destination. exclude The non-overlapping regions of source and destination are combined. ...
mask-image - CSS: Cascading Style Sheets
initial; mask-image: unset; Syntax Values none This keyword is interpreted as a transparent black image layer. <mask-source> A <url> reference to a <mask> or to a CSS image. <image> An image value used as mask image layer. ...
mask-mode - CSS: Cascading Style Sheets
Web › CSS › mask-mode
image property is of type <mask-source>, the luminance values of the mask layer image should be used as the mask values. If it is of type <image>, the alpha values of the mask layer image should be used as the mask values. ...
mask-origin - CSS: Cascading Style Sheets
ed by the viewBox attribute and the dimension of the reference box is set to the width and height values of the viewBox attribute. content Same as content-box. padding Same as padding-box. border Same as border-box. ...
mask-position - CSS: Cascading Style Sheets
t's box. Relative or absolute offsets can be given. Note that the position can be set outside of the element's box. ...
mask-repeat - CSS: Cascading Style Sheets
no-repeat The image is not repeated (and hence the mask painting area will not necessarily be entirely covered). The position of the non-repeated mask image is defined by the mask-position CSS property. ...
mask-size - CSS: Cascading Style Sheets
Web › CSS › mask-size
pecified dimension for that dimension. For the other dimension, use the image's corresponding intrinsic dimension if there is one. If there is no such intrinsic dimension, use the corresponding dimension of the mask positioning area. ...
mask-type - CSS: Cascading Style Sheets
Web › CSS › mask-type
w. Values luminance Is a keyword indicating that the associated mask image is a luminance mask, i.e., that its relative luminance values must be used when applying it. alpha Is a keyword indicating that the associated mask image is an alpha mask, i.e., that its alpha channel values must be used when applying it. ...
mask - CSS: Cascading Style Sheets
Web › CSS › mask
ask-position: centermask-clip: border-boxmask-origin: border-boxmask-size: automask-composite: addApplies toall elements; In SVG, it applies to container elements excluding the defs element and all graphics elementsInheritednoPercentagesas each of the properties of the shorthand:mask-position: refer to size of mask painting area minus size of mask layer image (see the text for background-position)Computed valueas each of the properties of the shorthand:mask-image: as specified, but with <url> values made absolutemask-mode: as specifiedmask-repeat: Consists of two keywords, one per dimensionmask-position: Consists of two keywords representing the origin and two offsets from that origin, each given as an absolute length (if given a <length>), otherwise as a percentage.mask-clip: as specifiedmask-origin: a...
max-block-size - CSS: Cascading Style Sheets
ays-lr and sideways-rl were removed from the CSS Writing Modes Level 3 specification late in its design process. They may be restored in Level 4. The writing modes lr, lr-tb, rl, rb, and rb-tl are no longer allowed in HTML contexts; they may only be used in SVG 1.x contexts. Formal definition Initial value0Applies tosame as width and heightInheritednoPercentagesblock-size of containing blockComputed valuesame as max-width and max-heightAnimation typea length, percentage or calc(); Formal syntax <'max-width'> Examples Setting max-block-size with horizontal and vertical text In this example, the same text (the opening sentences from Herman Melville's novel Moby-Dick) is presented in both the horizontal-tb and vertical-rl writing modes. Everything else about the two boxes is identical, includin...
max-height - CSS: Cascading Style Sheets
eApplies toall elements but non-replaced inline elements, table columns, and column groupsInheritednoPercentagesThe percentage is calculated with respect to the height of the generated box's containing block. ...
max-inline-size - CSS: Cascading Style Sheets
x-content; max-inline-size: min-content; max-inline-size: fit-content(20em); /* Global values */ max-inline-size: inherit; max-inline-size: initial; max-inline-size: unset; Values The max-inline-size property takes the same values as the max-width and max-height properties. ...
max-width - CSS: Cascading Style Sheets
Web › CSS › max-width
truncated and/or do not obscure other content when the page is zoomed to increase text size. ...
min-block-size - CSS: Cascading Style Sheets
imum width of the element; otherwise, it relates to the minimum height of the element. A related property is min-inline-size, which defines the other dimension of the element. Values The min-block-size property takes the same values as the min-width and min-height properties. ...
min-height - CSS: Cascading Style Sheets
autoApplies toall elements but non-replaced inline elements, table columns, and column groupsInheritednoPercentagesThe percentage is calculated with respect to the height of the generated box's containing block. ...
min-inline-size - CSS: Cascading Style Sheets
mum height of the element; otherwise, it relates to the minimum width of the element. A related property is min-block-size, which defines the other dimension of the element. Values The min-inline-size property takes the same values as the min-width and min-height properties. ...
min-width - CSS: Cascading Style Sheets
Web › CSS › min-width
tent The intrinsic minimum min-width. fit-content(<length-percentage>) Uses the fit-content formula with the available space replaced by the specified argument, i.e. min(max-content, max(min-content, argument)). ...
mix-blend-mode - CSS: Cascading Style Sheets
ft-light; mix-blend-mode: difference; mix-blend-mode: exclusion; mix-blend-mode: hue; mix-blend-mode: saturation; mix-blend-mode: color; mix-blend-mode: luminosity; /* Global values */ mix-blend-mode: initial; mix-blend-mode: inherit; mix-blend-mode: unset; Values <blend-mode> The blending mode that should be applied. ...
object-fit - CSS: Cascading Style Sheets
ject will completely fill the box. If the object's aspect ratio does not match the aspect ratio of its box, then the object will be stretched to fit. none The replaced content is not resized. scale-down The content is sized as if none or contain were specified, whichever would result in a smaller concrete object size. ...
object-position - CSS: Cascading Style Sheets
-position: initial; object-position: unset; Values <position> From one to four values that define the 2D position of the element. Relative or absolute offsets can be used. Note: The position can be set so that the replaced element is drawn outside its box. ...
offset-anchor - CSS: Cascading Style Sheets
elative to the edges of an element's box. It can be defined using one to four values. For more specifics, see the <position> and background-position reference pages. Note that the 3-value position syntax does not work for any usage of <position>, except for in background(-position). ...
offset-distance - CSS: Cascading Style Sheets
length positioned along the path */ offset-distance: 40px; <length-percentage> A length that specifies how far the element is along the path (defined with offset-path). 100% represents the total length of the path (when the offset-path is defined as a basic shape or path()). Formal definition Initial value0Applies totransformable elementsInheritednoPercentagesrefer to the total path lengthComputed valuefor <length> the absolute value, otherwise a percentageAnimation typea length, percentage or calc(); Formal syntax <length-percentage>where <length-percentage> = <length> | <percentage> Examples Using offset-distance in an animation The motion aspect in CSS Motion Path typically comes from animating the offset-distance property. If you want to animate an element along its full path, you would...
offset-path - CSS: Cascading Style Sheets
yntax. none Specifies no motion path at all. Description This property defines a path an animated element can follow. An offset path is either a specified path with one or multiple sub-paths or the geometry of a not-styled basic shape. The element's exact position on the offset path is determined by the offset-distance property. Each shape or path must define an initial position for the computed value of 0 for offset-distance and an initial direction which specifies the rotation of the object to the initial position. Early versions of the spec called this property motion-path. It was changed to offset-path because the property describes static positions, not motion. Formal definition Initial valuenoneApplies totransformable elementsInheritednoComputed valueas specifiedAnimation typeas <angl...
offset-position - CSS: Cascading Style Sheets
nts the vertical position. If only one value is specified, the second value is assumed to be center. If three or four values are used, the length-percentage values are offsets for the preceding keyword value(s). For more explanation of these value types, see background-position. ...
offset-rotate - CSS: Cascading Style Sheets
ss the position on the path */ offset-rotate: 90deg; offset-rotate: .5turn; auto The element is rotated by the angle of the direction of the offset-path, relative to the positive x-axis. This is the default value. <angle> The element has a constant clockwise rotation transformation applied to it by the specified rotation angle. auto <angle> If auto is followed by an <angle>, the computed value of the angle is added to the computed value of auto. reverse The element is rotated similar to auto, except it faces the opposite direction. It is the same as specifying a value of auto 180deg. Formal definition Initial valueautoApplies totransformable elementsInheritednoComputed valueas specifiedAnimation typeas <angle>, <basic-shape> or <path()> Formal syntax [ auto | reverse ] | ...
offset - CSS: Cascading Style Sheets
Web › CSS › offset
Formal definition Initial valueas each of the properties of the shorthand:offset-position: autooffset-path: noneoffset-distance: 0offset-anchor: autooffset-rotate: autoApplies totransformable elementsInheritednoPercentagesas each of the properties of the shorthand:offset-position: referToSizeOfContainingBlockoffset-distance: refer to the total path lengthoffset-anchor: relativeToWidthAndHeightComputed valueas each of the properties of the shorthand:offset-position: for <length> the absolute value, otherwise a percentageoffset-path: as specifiedoffset-distance: for <length> the absolute value, otherwise a percentageoffset-anchor: for <length> the absolute value, otherwise a percentageoffset-rotate: as specifiedAnimation typeas each of the properties of the shorthand:offset-position: a positionoffset-...
opacity - CSS: Cascading Style Sheets
Web › CSS › opacity
delines (WCAG), a ratio of 4.5:1 is required for text content and 3:1 for larger text such as headings. Large text is defined as 18.66px and bold or larger, or 24px or larger. ...
orphans - CSS: Cascading Style Sheets
Web › CSS › orphans
typography, an orphan is the first line of a paragraph that appears alone at the bottom of a page. (The paragraph continues on a following page.) Syntax Values <integer> The minimum number of lines that can stay by themselves at the bottom of a fragment before a fragmentation break. The value must be positive. Formal definition Initial value2Applies toblock container elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax <integer> Examples Setting a minimum orphan size of three lines HTML <div> <p>This is the first paragraph containing some text.</p> <p>This is the second paragraph containing some more text than the first one. It is used to demonstrate how orphans work.</p> <p>This is the third paragraph. It has a little bit more text than the first one.
outline-color - CSS: Cascading Style Sheets
t and 3:1 for larger text such as headings. Large text is defined as 18.66px and bold or larger, or 24px or larger. WebAIM: Color Contrast Checker MDN Understanding WCAG, Guideline 1.4 explanations Understanding Success Criterion 1.4.3 | W3C Understanding WCAG 2.0 Formal definition Initial valueinvert, for browsers supporting it, currentColor for the otherApplies toall elementsInheritednoComputed valueFor the keyword invert, the computed value is invert. For the color value, if the value is translucent, the computed value will be the rgba() corresponding one. If it isn't, it will be the rgb() corresponding one. The transparent keyword maps to rgba(0,0,0,0).Animation typea color Formal syntax <color> | invertwhere <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> ...
outline-offset - CSS: Cascading Style Sheets
line inside the element. A value of 0 places the outline so that there is no space between it and the element. Description An outline is a line that is drawn around an element, outside the border edge. The space between an element and its outline is transparent. In other words, it is the same as the parent element's background. ...
outline-style - CSS: Cascading Style Sheets
as though it were carved into the page. ridge The opposite of groove: the outline looks as though it were extruded from the page. inset The outline makes the box look as though it were embedded in the page. outset The opposite of inset: the outline makes the box look as though it were coming out of the page. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax auto | <'border-style'> Examples Setting outline style to auto The auto value indicates a custom outline style -- typically a style [that] is either a user interface default for the platform, or perhaps a style that is richer than can be described in detail in CSS, e.g. a rounded edge outline with semi-translucent outer pixels that appears to g...
outline - CSS: Cascading Style Sheets
Web › CSS › outline
ocus styling if the default focus style is removed. How to Design Useful and Usable Focus Indicators WCAG 2.1: Understanding Success Criterion 2.4.7: Focus Visible Formal definition Initial valueas each of the properties of the shorthand:outline-color: invert, for browsers supporting it, currentColor for the otheroutline-style: noneoutline-width: mediumApplies toall elementsInheritednoComputed valueas each of the properties of the shorthand:outline-color: For the keyword invert, the computed value is invert. For the color value, if the value is translucent, the computed value will be the rgba() corresponding one. If it isn't, it will be the rgb() corresponding one. The transparent keyword maps to rgba(0,0,0,0).outline-width: an absolute length; if the keyword none is specified, the computed ...
Guide to scroll anchoring - CSS: Cascading Style Sheets
able to set overflow-anchor: auto elsewhere in the document to turn it back on for a subsection. Suppression triggers The specification also details some suppression triggers, which will disable scroll anchoring in places where it might be problematic. If any of the triggers happen on the anchor node, or an ancestor of it, anchoring is suppressed. These suppression triggers are changes to the computed value of any of the following properties: top, left, right, or bottom margin or padding Any width or height-related properties transform Additionally, position changes anywhere inside the scrolling box also disable scroll anchoring. In bug 1584285 the layout.css.scroll-anchoring.suppressions.enabled flag was added to Firefox Nightly in order to allow the disabling of these triggers Further ...
overflow-anchor - CSS: Cascading Style Sheets
r off. Syntax /* Keyword values */ overflow-anchor: auto; overflow-anchor: none; /* Global values */ overflow-anchor: inherit; overflow-anchor: initial; overflow-anchor: unset; Values auto The element becomes a potential anchor when adjusting scroll position. none The element won't be selected as a potential anchor. Formal definition Initial valueautoApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax auto | none Examples Prevent scroll anchoring To prevent scroll anchoring in a document, use the overflow-anchor property. body { overflow-anchor: none; } Specifications Specification Status Comment CSS Scroll Anchoring Module Level 1The definition of 'overflow-anchor' in that specification. Editor's Draf...
overflow-inline - CSS: Cascading Style Sheets
en the content changes.) Printers may still print overflowing content. auto Depends on the user agent. If content fits inside the padding box, it looks the same as visible, but still establishes a new block-formatting context. Desktop browsers provide scrollbars if content overflows. ...
overflow-x - CSS: Cascading Style Sheets
the content changes.) Printers may still print overflowing content. auto Depends on the user agent. If content fits inside the padding box, it looks the same as visible, but still establishes a new block-formatting context. Desktop browsers provide scrollbars if content overflows. ...
overflow-y - CSS: Cascading Style Sheets
the content changes.) Printers may still print overflowing content. auto Depends on the user agent. If content fits inside the padding box, it looks the same as visible, but still establishes a new block-formatting context. Desktop browsers provide scrollbars if content overflows. ...
overflow - CSS: Cascading Style Sheets
Web › CSS › overflow
max-height) or white-space set to nowrap. Setting one axis to visible (the default) while setting the other to a different value results in visible behaving as auto. The JavaScript Element.scrollTop property may be used to scroll an HTML element even when overflow is set to hidden. ...
overscroll-behavior-block - CSS: Cascading Style Sheets
s set on (e.g. "bounce" effects or refreshes), but no scroll chaining occurs to neighbouring scrolling areas, e.g. underlying elements will not scroll. none No scroll chaining occurs to neighbouring scrolling areas, and default scroll overflow behavior is prevented. Formal definition Initial valueautoApplies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax contain | none | auto Examples Preventing block overscrolling In this demo we have two block-level boxes, one inside the other. The outer box has a large height set on it so the page will scroll vertically. The inner box has a small width (and height) set on it so it sits comforably inside the viewport, but its content is given a large height s...
overscroll-behavior-inline - CSS: Cascading Style Sheets
s set on (e.g. "bounce" effects or refreshes), but no scroll chaining occurs to neighbouring scrolling areas, e.g. underlying elements will not scroll. none No scroll chaining occurs to neighbouring scrolling areas, and default scroll overflow behavior is prevented. Formal definition Initial valueautoApplies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax contain | none | auto Examples Preventing inline overscrolling In this demo we have two block-level boxes, one inside the other. The outer box has a large width set on it so the page will scroll horizontally. The inner box has a small width (and height) set on it so it sits comforably inside the viewport, but its content is given a large width ...
overscroll-behavior-x - CSS: Cascading Style Sheets
s set on (e.g. "bounce" effects or refreshes), but no scroll chaining occurs to neighbouring scrolling areas, e.g. underlying elements will not scroll. none No scroll chaining occurs to neighbouring scrolling areas, and default scroll overflow behavior is prevented. Formal definition Initial valueautoApplies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax contain | none | auto Examples Preventing an underlying element from scrolling horizontally In our simple overscroll-behavior-x example (see source code also), we have two block-level boxes, one inside the other. The outer box has a large width set on it so the page will scroll horizontally. The inner box has a small width (and height) set on i...
overscroll-behavior - CSS: Cascading Style Sheets
s set on (e.g. "bounce" effects or refreshes), but no scroll chaining occurs to neighbouring scrolling areas, e.g. underlying elements will not scroll. none No scroll chaining occurs to neighbouring scrolling areas, and default scroll overflow behavior is prevented. Formal definition Initial valueautoApplies tonon-replaced block-level elements and non-replaced inline-block elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax [ contain | none | auto ]{1,2} Examples Preventing an underlying element from scrolling In our overscroll-behavior example (see the source code also), we present a full-page list of fake contacts, and a dialog box containing a chat window. Both of these areas scroll; normally if you scrolled the chat window until you hit a scroll boundary, t...
padding-block-end - CSS: Cascading Style Sheets
to the padding-top, padding-right, padding-bottom, or padding-left property depending on the values defined for writing-mode, direction, and text-orientation. It relates to padding-block-start, padding-inline-start, and padding-inline-end, which define the other paddings of the element. ...
padding-block-start - CSS: Cascading Style Sheets
s to the padding-top, padding-right, padding-bottom, or padding-left property depending on the values defined for writing-mode, direction, and text-orientation. It relates to padding-block-end, padding-inline-start, and padding-inline-end, which define the other paddings of the element. ...
padding-block - CSS: Cascading Style Sheets
es defined for writing-mode, direction, and text-orientation. Constituent properties This property is a shorthand for the following CSS properties: padding-block-end padding-block-start Syntax Values The padding-block property takes the same values as the padding-left property. ...
padding-bottom - CSS: Cascading Style Sheets
ge> The size of the padding as a percentage, relative to the width of the containing block. Must be nonnegative. Formal definition Initial value0Applies toall elements, except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column. It also applies to ::first-letter and ::first-line.InheritednoPercentagesrefer to the width of the containing blockComputed valuethe percentage as specified or the absolute lengthAnimation typea length Formal syntax <length> | <percentage> Examples Setting padding bottom with pixels and percentages .content { padding-bottom: 5%; } .sidebox { padding-bottom: 10px; } Specifications Specification Status Comment CSS Basic Box ModelThe definition of 'padding-bottom' in that specification. W...
padding-inline-end - CSS: Cascading Style Sheets
to the padding-top, padding-right, padding-bottom, or padding-left property depending on the values defined for writing-mode, direction, and text-orientation. It relates to padding-block-start, padding-block-end, and padding-inline-start, which define the other paddings of the element. ...
padding-inline-start - CSS: Cascading Style Sheets
ds to the padding-top, padding-right, padding-bottom, or padding-left property depending on the values defined for writing-mode, direction, and text-orientation. It relates to padding-block-start, padding-block-end, and padding-inline-end, which define the other paddings of the element. ...
padding-inline - CSS: Cascading Style Sheets
ding-inline property takes the same values as the padding-left property. Description Values for this property correspond to the padding-top and padding-bottom, or padding-right, and padding-left property depending on the values defined for writing-mode, direction, and text-orientation. ...
padding-left - CSS: Cascading Style Sheets
ge> The size of the padding as a percentage, relative to the width of the containing block. Must be nonnegative. Formal definition Initial value0Applies toall elements, except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column. It also applies to ::first-letter and ::first-line.InheritednoPercentagesrefer to the width of the containing blockComputed valuethe percentage as specified or the absolute lengthAnimation typea length Formal syntax <length> | <percentage> Examples Setting left padding using pixels and percentages .content { padding-left: 5%; } .sidebox { padding-left: 10px; } Specifications Specification Status Comment CSS Basic Box ModelThe definition of 'padding-left' in that specification. Working ...
padding-right - CSS: Cascading Style Sheets
ge> The size of the padding as a percentage, relative to the width of the containing block. Must be nonnegative. Formal definition Initial value0Applies toall elements, except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column. It also applies to ::first-letter and ::first-line.InheritednoPercentagesrefer to the width of the containing blockComputed valuethe percentage as specified or the absolute lengthAnimation typea length Formal syntax <length> | <percentage> Examples Setting right padding using pixels and percentages .content { padding-right: 5%; } .sidebox { padding-right: 10px; } Specifications Specification Status Comment CSS Basic Box ModelThe definition of 'padding-right' in that specification. Work...
padding-top - CSS: Cascading Style Sheets
ge> The size of the padding as a percentage, relative to the width of the containing block. Must be nonnegative. Formal definition Initial value0Applies toall elements, except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column. It also applies to ::first-letter and ::first-line.InheritednoPercentagesrefer to the width of the containing blockComputed valuethe percentage as specified or the absolute lengthAnimation typea length Formal syntax <length> | <percentage> Examples Setting top padding using pixels and percentages .content { padding-top: 5%; } .sidebox { padding-top: 10px; } Specifications Specification Status Comment CSS Basic Box ModelThe definition of 'padding-top' in that specification. Working Draf...
padding - CSS: Cascading Style Sheets
Web › CSS › padding
ng block. Formal definition Initial valueas each of the properties of the shorthand:padding-bottom: 0padding-left: 0padding-right: 0padding-top: 0Applies toall elements, except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column. ...
page-break-after - CSS: Cascading Style Sheets
of values should be aliased as follows: page-break-after break-after auto auto left left right right avoid avoid always page Formal definition Initial valueautoApplies toblock-level elements in the normal flow of the root element. ...
page-break-before - CSS: Cascading Style Sheets
f values should be aliased as follows: page-break-before break-before auto auto left left right right avoid avoid always page Formal definition Initial valueautoApplies toblock-level elements in the normal flow of the root element. ...
page-break-inside - CSS: Cascading Style Sheets
sites using page-break-inside continue to work as designed. A subset of values should be aliased as follows: page-break-inside break-inside auto auto avoid avoid Formal definition Initial valueautoApplies toblock-level elements in the normal flow of the root element. ...
paint-order - CSS: Cascading Style Sheets
ties (e.g. marker-start) and <marker> element. They do not apply to HTML text, so in that case, you can only determine the order of stroke and fill. Values normal Paint the different items in normal paint order. stroke, fill, markers Specify some or all of these values in the order you want them to be painted in. ...
perspective-origin - CSS: Cascading Style Sheets
value or relative to the height of the element. The value may be negative. top, a keyword being a shortcut for the 0 length value. center, a keyword being a shortcut for the 50% percentage value. bottom, a keyword being a shortcut for the 100% percentage value. ...
perspective - CSS: Cascading Style Sheets
by default placed at the center of the element, but its position can be changed using the perspective-origin property. Using this property with a value different than 0 and none creates a new stacking context. Also, in that case, the object will act as a containing block for position: fixed elements that it contains. Formal definition Initial valuenoneApplies totransformable elementsInheritednoComputed valuethe absolute length or noneAnimation typea lengthCreates stacking contextyes Formal syntax none | <length> Examples Setting perspective This example shows a cube with the perspective set at different positions. How quick the cube shrinks is defined by the perspective property. The smaller its value is, the deeper the perspective is. HTML The HTML below creates four copies of the same box, w...
place-content - CSS: Cascading Style Sheets
Examples Placing content in a flex container HTML <div id="container"> <div class="small">Lorem</div> <div class="small">Lorem<br/>ipsum</div> <div class="large">Lorem</div> <div class="large">Lorem<br/>impsum</div> <div class="large"></div> <div class="large"></div> </div> <code>writing-mo...
place-items - CSS: Cascading Style Sheets
iner, any auto-sized items have their size increased equally (not proportionally), while still respecting the constraints imposed by max-height/max-width (or equivalent functionality), so that the combined size exactly fills the alignment container. ...
place-self - CSS: Cascading Style Sheets
still respecting the constraints imposed by max-height/max-width (or equivalent functionality), so that the combined size of all auto-sized items exactly fills the alignment container along the cross axis. Formal definition Initial valueas each of the properties of the shorthand:align-self: autojustify-self: autoApplies toblock-level boxes, absolutely-positioned boxes, and grid itemsInheritednoComputed valueas each of the properties of the shorthand:align-self: auto computes to itself on absolutely-positioned elements, and to the computed value of align-items on the parent (minus any legacy keywords) on all other boxes, or start if the box has no parent. Its behavior depends on the layout model, as described for justify-self. Otherwise the specified value.justify-self: as specifiedAnimation typediscr...
pointer-events - CSS: Cascading Style Sheets
lement will cause it to "catch" pointer events, and when. To help us in deciding how pointer-events should be further extended for HTML, if you have any particular things that you would like to be able to do with this property, then please add them to the Use Cases section of this wiki page (don't worry about keeping it tidy). Formal definition Initial valueautoApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit Examples Disabling pointer events on all images This example disables pointer events (clicking, dragging, hovering, etc.) on all images. img { pointer-events: none; } Disabling pointer events on a single link This example disables...
position - CSS: Cascading Style Sheets
Web › CSS › position
owser may not be able to manage repaints at 60 fps, causing accessibility concerns for people with sensitivities and jank for everyone. One solution is to add will-change: transform to the positioned elements to render the element in its own layer, improving repaint speed and therefore improving performance and accessibility. Formal definition Initial valuestaticApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscreteCreates stacking contextyes Formal syntax static | relative | absolute | sticky | fixed Examples Relative positioning Relatively positioned elements are offset a given amount from their normal position within the document, but without the offset affecting other elements. In the example below, note how the other elements are placed as if "Two" were taking up t...
quotes - CSS: Cascading Style Sheets
Web › CSS › quotes
anguage value is set on the selected elements (i.e. via the lang attribute). [<string> <string>]+ One or more pairs of <string> values for open-quote and close-quote. The first pair represents the outer level of quotation, the second pair is for the first nested level, next pair for third level and so on. Formal definition Initial valuedepends on user agentApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax none | auto | [ <string> <string> ]+ Examples Basic quote marks HTML <q>To be or not to be. That's the question!</q> CSS q { quotes: '"' '"' "'" "'"; } q::before { content: open-quote; } q::after { content: close-quote; } Result Auto quotes For most browsers, the default value of quotes is auto (Firefox 70+), or the browser other...
resize - CSS: Cascading Style Sheets
Web › CSS › resize
rection (either horizontally or vertically, depending on the writing-mode and direction value). resize does not apply to the following: Inline elements Block elements for which the overflow property is set to visible Formal definition Initial valuenoneApplies toelements with overflow other than visible, and optionally replaced elements representing images or videos, and iframesInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | both | horizontal | vertical | block | inline Examples Disabling resizability of textareas In many browsers, <textarea> elements are resizable by default. You may override this behavior with the resize property. HTML <textarea>Type some text here.</textarea> CSS textarea { resize: none; /* Disables resizability */ } Result Us...
Resolved value - CSS: Cascading Style Sheets
See the specification link below for more per-property details. ...
rotate - CSS: Cascading Style Sheets
Web › CSS › rotate
vector plus angle value Three <number>s representing an origin-centered vector that defines a line around which you want to rotate the element, plus an <angle> specifying the angle to rotate the element through. Equivalent to a rotate3d() (3D rotation) function. none Specifies that no rotation should be applied. ...
row-gap (grid-row-gap) - CSS: Cascading Style Sheets
Web › CSS › row-gap
/* Global values */ row-gap: inherit; row-gap: initial; row-gap: unset; Values <length-percentage> Is the width of the gutter separating the rows. <percentage> values are relative to the dimension of the element. ...
ruby-align - CSS: Cascading Style Sheets
ase text. space-between Is a keyword indicating that the extra space will be distributed between the elements of the ruby. space-around Is a keyword indicating that the extra space will be distributed between the elements of the ruby, and around it. ...
ruby-position - CSS: Cascading Style Sheets
t for horizontal scripts and right to it for vertical scripts. under Is a keyword indicating that the ruby has to be placed under the main text for horizontal scripts and left to it for vertical scripts. inter-character Is a keyword indicating that the ruby has to be placed between the different characters. ...
scale - CSS: Cascading Style Sheets
Web › CSS › scale
) of a 2D scale. Equivalent to a scale() (2D scaling) function with two values specified. Three length/percentage values Three <number>s that specify the X, Y, and Z axis scaling values (respectively) of a 3D scale. Equivalent to a scale3d() (3D scaling) function. none Specifies that no scaling should be applied. ...
scroll-behavior - CSS: Cascading Style Sheets
l-behavior property is specified as one of the keyword values listed below. Values auto The scrolling box scrolls instantly. smooth The scrolling box scrolls in a smooth fashion using a user-agent-defined timing function over a user-agent-defined period of time. User agents should follow platform conventions, if any. ...
scroll-margin-block-end - CSS: Cascading Style Sheets
e-examples and send us a pull request. Syntax /* <length> values */ scroll-margin-block-end: 10px; scroll-margin-block-end: 1em; /* Global values */ scroll-margin-block-end: inherit; scroll-margin-block-end: initial; scroll-margin-block-end: unset; Values <length> An outset from the block end edge of the scroll container. Formal definition Initial value0Applies toall elementsInheritednoComputed valueas specifiedAnimation typeby computed value type Formal syntax <length> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-margin-block-end' in that specification. Candidate Recommendation Initial definition ...
scroll-margin-block-start - CSS: Cascading Style Sheets
d send us a pull request. Syntax /* <length> values */ scroll-margin-block-start: 10px; scroll-margin-block-start: 1em; /* Global values */ scroll-margin-block-start: inherit; scroll-margin-block-start: initial; scroll-margin-block-start: unset; Values <length> An outset from the block start edge of the scroll container. Formal definition Initial value0Applies toall elementsInheritednoComputed valueas specifiedAnimation typeby computed value type Formal syntax <length> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-margin-block-start' in that specification. Candidate Recommendation Initial definition ...
scroll-margin-block - CSS: Cascading Style Sheets
on The scroll-margin values represent outsets defining the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container's coordinate space), then adding the specified outsets. Formal definition Initial value0Applies toall elementsInheritednoComputed valueas specifiedAnimation typeby computed value type Formal syntax <length>{1,2} Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-margin-block' in that specification. Candidate Recommendation Initial definition ...
scroll-margin-bottom - CSS: Cascading Style Sheets
com/mdn/interactive-examples and send us a pull request. Syntax /* <length> values */ scroll-margin-bottom: 10px; scroll-margin-bottom: 1em; /* Global values */ scroll-margin-bottom: inherit; scroll-margin-bottom: initial; scroll-margin-bottom: unset; Values <length> An outset from the bottom edge of the scroll container. Formal definition Initial value0Applies toall elementsInheritednoComputed valueas specifiedAnimation typeby computed value type Formal syntax <length> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-margin-bottom' in that specification. Candidate Recommendation Initial definition ...
scroll-margin-inline-end - CSS: Cascading Style Sheets
les and send us a pull request. Syntax /* <length> values */ scroll-margin-inline-end: 10px; scroll-margin-inline-end: 1em; /* Global values */ scroll-margin-inline-end: inherit; scroll-margin-inline-end: initial; scroll-margin-inline-end: unset; Values <length> An outset from the inline end edge of the scroll container. Formal definition Initial value0Applies toall elementsInheritednoComputed valueas specifiedAnimation typeby computed value type Formal syntax <length> Examples Simple demonstration This example implements something very similar to the interactive example above, except that here we'll explain to you how it's implemented. The aim here is to create four horizontally-scrolling blocks, the second and third of which snap into place, near but not quite at the right of each bl...
scroll-margin-inline-start - CSS: Cascading Style Sheets
us a pull request. Syntax /* <length> values */ scroll-margin-inline-start: 10px; scroll-margin-inline-start: 1em; /* Global values */ scroll-margin-inline-start: inherit; scroll-margin-inline-start: initial; scroll-margin-inline-start: unset; Values <length> An outset from the inline start edge of the scroll container. Formal definition Initial value0Applies toall elementsInheritednoComputed valueas specifiedAnimation typeby computed value type Formal syntax <length> Examples Simple demonstration This example implements something very similar to the interactive example above, except that here we'll explain to you how it's implemented. The aim here is to create four horizontally-scrolling blocks, the second and third of which snap into place, near but not quite at the left of each blo...
scroll-margin-inline - CSS: Cascading Style Sheets
on The scroll-margin values represent outsets defining the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container's coordinate space), then adding the specified outsets. Formal definition Initial value0Applies toall elementsInheritednoComputed valueas specifiedAnimation typeby computed value type Formal syntax <length>{1,2} Examples Simple demonstration This example implements something very similar to the interactive example above, except that here we'll explain to you how it's implemented. The aim here is to create four horizontally-scrolling blocks, the second and third of which snap into place, near but not quite at the right of ea...
scroll-margin-left - CSS: Cascading Style Sheets
://github.com/mdn/interactive-examples and send us a pull request. Syntax /* <length> values */ scroll-margin-left: 10px; scroll-margin-left: 1em; /* Global values */ scroll-margin-left: inherit; scroll-margin-left: initial; scroll-margin-left: unset; Values <length> An outset from the left edge of the scroll container. Formal definition Initial value0Applies toall elementsInheritednoComputed valueas specifiedAnimation typeby computed value type Formal syntax <length> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-margin-left' in that specification. Candidate Recommendation Initial definition ...
scroll-margin-right - CSS: Cascading Style Sheets
thub.com/mdn/interactive-examples and send us a pull request. Syntax /* <length> values */ scroll-margin-right: 10px; scroll-margin-right: 1em; /* Global values */ scroll-margin-right: inherit; scroll-margin-right: initial; scroll-margin-right: unset; Values <length> An outset from the right edge of the scroll container. Formal definition Initial value0Applies toall elementsInheritednoComputed valueas specifiedAnimation typeby computed value type Formal syntax <length> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-margin-right' in that specification. Candidate Recommendation Initial definition ...
scroll-margin-top - CSS: Cascading Style Sheets
ne https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* <length> values */ scroll-margin-top: 10px; scroll-margin-top: 1em; /* Global values */ scroll-margin-top: inherit; scroll-margin-top: initial; scroll-margin-top: unset; Values <length> An outset from the top edge of the scroll container. Formal definition Initial value0Applies toall elementsInheritednoComputed valueas specifiedAnimation typeby computed value type Formal syntax <length> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-margin-top' in that specification. Candidate Recommendation Initial definition ...
scroll-margin - CSS: Cascading Style Sheets
us, the scroll-margin values represent outsets defining the scroll snap area that is used for snapping this box to the snapport. The scroll snap area is determined by taking the transformed border box, finding its rectangular bounding box (axis-aligned in the scroll container's coordinate space), then adding the specified outsets. Formal definition Initial value0Applies toall elementsInheritednoComputed valueas specifiedAnimation typeby computed value type Formal syntax <length>{1,4} Examples Simple demonstration This example implements something very similar to the interactive example above, except that here we'll explain to you how it's implemented. The aim here is to create four horizontally-scrolling blocks, the second and third of which snap into place, near but not quite at the left of eac...
scroll-padding-block-end - CSS: Cascading Style Sheets
nwards offset from the block end edge of the scrollport, as a valid length or a percentage. auto The offset is determind by the user agent. This will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate. Formal definition Initial valueautoApplies toscroll containersInheritednoPercentagesrelative to the scroll container's scrollportComputed valueas specifiedAnimation typeby computed value type Formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-padding-block-end' in that specification. Candidate Recommendation Initial definition ...
scroll-padding-block-start - CSS: Cascading Style Sheets
ards offset from the block start edge of the scrollport, as a valid length or a percentage. auto The offset is determind by the user agent. This will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate. Formal definition Initial valueautoApplies toscroll containersInheritednoPercentagesrelative to the scroll container's scrollportComputed valueas specifiedAnimation typeby computed value type Formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-padding-block-start' in that specification. Candidate Recommendation Initial definition ...
scroll-padding-block - CSS: Cascading Style Sheets
ds offset from the corresponding edge of the scrollport, as a valid length or a percentage. auto The offset is determind by the user agent. This will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate. Formal definition Initial valueautoApplies toscroll containersInheritednoPercentagesrelative to the scroll container's scrollportComputed valueas specifiedAnimation typeby computed value type Formal syntax [ auto | <length-percentage> ]{1,2}where <length-percentage> = <length> | <percentage> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-padding-block' in that specification. Candidate Recommendation Initial definition ...
scroll-padding-bottom - CSS: Cascading Style Sheets
n inwards offset from the bottom edge of the scrollport, as a valid length or a percentage. auto The offset is determind by the user agent. This will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate. Formal definition Initial valueautoApplies toscroll containersInheritednoPercentagesrelative to the scroll container's scrollportComputed valueas specifiedAnimation typeby computed value type Formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-padding-bottom' in that specification. Candidate Recommendation Initial definition ...
scroll-padding-inline-end - CSS: Cascading Style Sheets
nwards offset from the inline end edge of the scrollport, as a valid length or a percentage. auto The offset is determind by the user agent. This will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate. Formal definition Initial valueautoApplies toscroll containersInheritednoPercentagesrelative to the scroll container's scrollportComputed valueas specifiedAnimation typeby computed value type Formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-padding-inline-end' in that specification. Candidate Recommendation Initial definition ...
scroll-padding-inline-start - CSS: Cascading Style Sheets
rds offset from the inline start edge of the scrollport, as a valid length or a percentage. auto The offset is determind by the user agent. This will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate. Formal definition Initial valueautoApplies toscroll containersInheritednoPercentagesrelative to the scroll container's scrollportComputed valueas specifiedAnimation typeby computed value type Formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-padding-inline-start' in that specification. Candidate Recommendation Initial definition ...
scroll-padding-inline - CSS: Cascading Style Sheets
ds offset from the corresponding edge of the scrollport, as a valid length or a percentage. auto The offset is determind by the user agent. This will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate. Formal definition Initial valueautoApplies toscroll containersInheritednoPercentagesrelative to the scroll container's scrollportComputed valueas specifiedAnimation typeby computed value type Formal syntax [ auto | <length-percentage> ]{1,2}where <length-percentage> = <length> | <percentage> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-padding-inline' in that specification. Candidate Recommendation Initial definition ...
scroll-padding-left - CSS: Cascading Style Sheets
An inwards offset from the left edge of the scrollport, as a valid length or a percentage. auto The offset is determind by the user agent. This will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate. Formal definition Initial valueautoApplies toscroll containersInheritednoPercentagesrelative to the scroll container's scrollportComputed valueas specifiedAnimation typeby computed value type Formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-padding-left' in that specification. Candidate Recommendation Initial definition ...
scroll-padding-right - CSS: Cascading Style Sheets
An inwards offset from the top edge of the scrollport, as a valid length or a percentage. auto The offset is determind by the user agent. This will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate. Formal definition Initial valueautoApplies toscroll containersInheritednoPercentagesrelative to the scroll container's scrollportComputed valueas specifiedAnimation typeby computed value type Formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-padding-right' in that specification. Candidate Recommendation Initial definition ...
scroll-padding-top - CSS: Cascading Style Sheets
An inwards offset from the top edge of the scrollport, as a valid length or a percentage. auto The offset is determind by the user agent. This will generally be 0px, but a user agent is able to detect and do something else if a non-zero value is more appropriate. Formal definition Initial valueautoApplies toscroll containersInheritednoPercentagesrelative to the scroll container's scrollportComputed valueas specifiedAnimation typeby computed value type Formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-padding-top' in that specification. Candidate Recommendation Initial definition ...
scroll-padding - CSS: Cascading Style Sheets
set from the corresponding edge of the scrollport, as a valid <length> or a <percentage>. auto The offset is determind by the user agent. This will generally be 0px, but the user agent is free to detect and do something else if a non-zero value is more appropriate. Formal definition Initial valueautoApplies toscroll containersInheritednoPercentagesrelative to the scroll container's scrollportComputed valueas specifiedAnimation typeby computed value type Formal syntax [ auto | <length-percentage> ]{1,4}where <length-percentage> = <length> | <percentage> Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-padding' in that specification. Candidate Recommendation Initial definition ...
scroll-snap-align - CSS: Cascading Style Sheets
in the scroll container's snapport is a snap position in this axis. center The center alignment of this box's scroll snap area, within the scroll container's snapport is a snap position in this axis. Safari currently has the two value syntax in the wrong order, the first value being inline the second block. See bug #191865. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax [ none | start | end | center ]{1,2} Specifications Specification Status Comment CSS Scroll Snap Module Level 1The definition of 'scroll-snap-align' in that specification. Candidate Recommendation Initial definition ...
scroll-snap-coordinate - CSS: Cascading Style Sheets
ecifies that the element does not contribute to a snap point. <position> Specifies the offset of the snap coordinates from the start edge of the element's border box. For each pairing, the first value gives the x coordinate of the snap coordinate, the second value its y coordinate. ...
scroll-snap-destination - CSS: Cascading Style Sheets
unset; Syntax Values <position> Specifies the offset of the snap destination from the start edge of the scroll container's visual viewport. The first value gives the x coordinate of the snap destination, the second value its y coordinate. ...
scroll-snap-points-x - CSS: Cascading Style Sheets
half of the scroll container. repeat(<length-percentage>) Defines an interval at which snap points are defined, starting from the container's relevant start edge. Only positive lengths are allowed. Percentages refer to the width of the container. ...
scroll-snap-points-y - CSS: Cascading Style Sheets
half of the scroll container. repeat(<length-percentage>) Defines an interval at which snap points are defined, starting from the container's relevant start edge. Only positive lengths are allowed. Percentages refer to the width of the container. ...
scroll-snap-stop - CSS: Cascading Style Sheets
nap-type: initial; scroll-snap-type: unset; Syntax Values normal When the visual viewport of this element's scroll container is scrolled, it may "pass over" possible snap positions. always The scroll container must not "pass over" a possible snap position; and must snap to the first of this elements' snap positions. Formal definition Initial valuenormalApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax normal | always Examples Snapping in different axes This example is duplicated from scroll-snap-type with minor variances. CSS /* setup */ :root, body { height: 100%; display: flex; align-items: center; justify-content: space-between; flex-flow: column nowrap; font-family: monospace; } .container { display: flex; overflow: aut...
scroll-snap-type-x - CSS: Cascading Style Sheets
that snap point. proximity The visual viewport of this scroll container may come to rest on a snap point if it isn't currently scrolled horizontally considering the user agent's scroll parameters. If content is added, moved, deleted or resized the scroll offset may be adjusted to maintain the resting on that snap point. Formal definition Initial valuenoneApplies toscroll containersInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | mandatory | proximity Specifications Not part of any standard. ...
scroll-snap-type-y - CSS: Cascading Style Sheets
n that snap point. proximity The visual viewport of this scroll container may come to rest on a snap point if it isn't currently scrolled vertically considering the user agent's scroll parameters. If content is added, moved, deleted or resized the scroll offset may be adjusted to maintain the resting on that snap point. Formal definition Initial valuenoneApplies toscroll containersInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | mandatory | proximity Specifications Not part of any standard. ...
scroll-snap-type - CSS: Cascading Style Sheets
in the resting on that snap point. proximity The visual viewport of this scroll container may come to rest on a snap point if it isn't currently scrolled considering the user agent's scroll parameters. If content is added, moved, deleted or resized the scroll offset may be adjusted to maintain the resting on that snap point. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | [ x | y | block | inline | both ] [ mandatory | proximity ]? Examples Snapping in different axes HTML <div class="holster"> <div class="container x mandatory-scroll-snapping" dir="ltr"> <div>X Mand. LTR</div> <div>2</div> <div>3</div> <div>4</div> <div>5</div> </div> <div class="container x proximity-scroll-snapping" dir="ltr...
scrollbar-color - CSS: Cascading Style Sheets
ewport. Accessibility concerns When using scrollbar-color property with specific color values, authors should ensure the specified colors have enough contrast between them. For keyword values, UAs should ensure the colors they use have enough contrast. See Techniques for WCAG 2.0: G183: Using a contrast ratio of 3:1. ...
shape-image-threshold - CSS: Cascading Style Sheets
-image-threshold: initial; shape-image-threshold: unset; Syntax Values <alpha-value> Sets the threshold used for extracting a shape from an image. The shape is defined by the pixels whose alpha value is greater than the threshold. Values outside the range 0.0 (fully transparent) to 1.0 (fully opaque) are clamped to this range. Formal definition Initial value0.0Applies tofloatsInheritednoComputed valueThe same as the specified value after clipping the <number> to the range [0.0, 1.0].Animation typea number Formal syntax <alpha-value>where <alpha-value> = <number> | <percentage> Examples Aligning text to a gradient This example creates a <div> block with a gradient background image. The gradient is established as a CSS shape using shape-outside, so that pixels within the gradient which are ...
shape-margin - CSS: Cascading Style Sheets
/* <percentage> value */ shape-margin: 60%; /* Global values */ shape-margin: inherit; shape-margin: initial; shape-margin: unset; Values <length-percentage> Sets the margin of the shape to a <length> value or to a <percentage> of the width of the element's containing block. ...
shape-outside - CSS: Cascading Style Sheets
e in the shape functions. If both shapes are of type inset(), interpolate between each value in the shape functions. If both shapes are of type polygon(), both polygons have the same number of vertices, and use the same <fill-rule>, interpolate between each value in the shape functions. In all other cases no interpolation occurs. ...
tab-size - CSS: Cascading Style Sheets
Web › CSS › tab-size
: 0; /* <length> values */ tab-size: 10px; tab-size: 2em; /* Global values */ tab-size: inherit; tab-size: initial; tab-size: unset; Values <integer> A multiple of the advance width of the space character (U+0020) to be used as the width of tabs. Must be nonnegative. <length> The width of tabs. Must be nonnegative. Formal definition Initial value8Applies toblock containersInheritedyesComputed valuethe specified integer or an absolute lengthAnimation typea length Formal syntax <integer> | <length> Examples Expanding by character count pre { tab-size: 4; /* Set tab size to 4 characters wide */ } Collapse tabs pre { tab-size: 0; /* Remove indentation */ } Comparing to the default size This example compares a default tab size with a custom tab size. Note that white-space is set t...
table-layout - CSS: Cascading Style Sheets
his can speed up rendering time over the "automatic" layout method, but subsequent cell content might not fit in the column widths provided. Cells use the overflow property to determine whether to clip any overflowing content, but only if the table has a known width; otherwise, they won't overflow the cells. Formal definition Initial valueautoApplies totable and inline-table elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax auto | fixed Examples Fixed-width tables with text-overflow This example uses a fixed table layout, combined with the width property, to restrict the table's width. The text-overflow property is used to apply an ellipsis to words that are too long to fit. If the table layout were auto, the table would grow to accomodate its contents, despite th...
text-align-last - CSS: Cascading Style Sheets
tents are aligned to the left edge of the line box. right The inline contents are aligned to the right edge of the line box. center The inline contents are centered within the line box. justify The text is justified. Text should line up their left and right edges to the left and right content edges of the paragraph. Formal definition Initial valueautoApplies toblock containersInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | start | end | left | right | center | justify Examples Justifying the last line <p>Integer elementum massa at nulla placerat varius. Suspendisse in libero risus, in interdum massa. Vestibulum ac leo vitae metus faucibus gravida ac in neque. Nullam est eros, suscipit sed dictum quis, accumsan a ligula.</p> CSS p { font-size: 1.4em;...
text-align - CSS: Cascading Style Sheets
text can be problematic for people with cognitive concerns such as Dyslexia. MDN Understanding WCAG, Guideline 1.4 explanations Understanding Success Criterion 1.4.8 | Understanding WCAG 2.0 Formal definition Initial valuestart, or a nameless value that acts as left if direction is ltr, right if direction is rtl if start is not supported by the browser.Applies toblock containersInheritedyesComputed valueas specified, except for the match-parent value which is calculated against its parent's direction value and results in a computed value of either left or rightAnimation typediscrete Formal syntax start | end | left | right | center | justify | match-parent Examples Left alignment HTML <p class="example"> Integer elementum massa at nulla placerat varius. Suspendisse in libero risus, in i...
text-combine-upright - CSS: Cascading Style Sheets
mpts to display a sequence of consecutive ASCII digits (U+0030-U+0039) that has as many or fewer characters than the specified integer, such that it takes up the space of a single character within the vertical line box. If the integer is omitted, it computes to 2. Integers outside the range of 2-4 are invalid. Formal definition Initial valuenoneApplies tonon-replaced inline elementsInheritedyesComputed valuespecified keyword, plus integer if 'digits'Animation typediscrete Formal syntax none | all | [ digits <integer>? ] Examples Digits The digits value requires less markup than the all value when digits are being combined, but it is currently not very widely supported by browsers. HTML <p lang="ja" class="exampleText">??20?4?16??</p> CSS .exampleText { writing-mode: vertical-lr; text-co...
text-decoration-color - CSS: Cascading Style Sheets
meaning. For example, change of text and text-decoration-color alone is not enough to indicate a link has focus. WebAIM: Color Contrast Checker MDN Understanding WCAG, Guideline 1.4 explanations Understanding Success Criterion 1.4.3 | W3C Understanding WCAG 2.0 Formal definition Initial valuecurrentcolorApplies toall elements. ...
text-decoration-line - CSS: Cascading Style Sheets
ve line above it. line-through Each line of text has a decorative line going through its middle. blink The text blinks (alternates between visible and invisible). Conforming user agents may simply not blink the text. This value is deprecated in favor of CSS animations. Formal definition Initial valuenoneApplies toall elements. ...
text-decoration-skip-ink - CSS: Cascading Style Sheets
yph. That is, they are interrupted where they would otherwise cross over a glyph. all The browser must interrupt underlines and overlines so that they do not touch or closely approach a glyph. This can be helpful with certain Chinese, Japanese, or Korean (CJK) fonts, where the auto behavior might not create interruptions. ...
text-decoration-skip - CSS: Cascading Style Sheets
eceive separate underlines. (This is important in Chinese, where underlining is a form of punctuation.) box-decoration The text decoration is skipped over the box's margin, border, and padding areas. This only has an effect on decorations imposed by an ancestor; a decorating box never draws over its own box decoration. ...
text-decoration-style - CSS: Cascading Style Sheets
tion-style: initial; text-decoration-style: unset; Values solid Draws a single line. double Draws a double line. dotted Draws a dotted line. dashed Draws a dashed line. wavy Draws a wavy line. -moz-none Draws no line. Use text-decoration-line: none instead. Formal definition Initial valuesolidApplies toall elements. ...
text-emphasis-color - CSS: Cascading Style Sheets
r: blue; text-emphasis-color: rgba(90, 200, 160, 0.8); text-emphasis-color: transparent; /* Global values */ text-emphasis-color: inherit; text-emphasis-color: initial; text-emphasis-color: unset; Syntax Values <color> Defines the color of the emphasis marks. If no color is present, it defaults to currentcolor. ...
text-emphasis-position - CSS: Cascading Style Sheets
referred position Illustration Horizontal Vertical Japanese over right Korean Mongolian Chinese under right Note: The text-emphasis-position cannot be set, and therefore are not reset either, using the text-emphasis shorthand property. Formal definition Initial valueover rightApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax [ over | under ] && [ right | left ] Examples Preferring ruby over emphasis marks Some editors prefer to hide emphasis marks when they conflict with ruby. In HTML, this can be done with the following style rule: ruby { text-emphasis: none; } Preferring emphasis marks over ruby Some other editors prefer to hide ruby when they conflict wit...
text-emphasis-style - CSS: Cascading Style Sheets
n triangle is '?' (U+25B3). sesame Display sesames as marks. The filled sesame is '?' (U+FE45), and the open sesame is '?' (U+FE46). <string> Display the given string as marks. Authors should not specify more than one character in <string>. The UA may truncate or ignore strings consisting of more than one grapheme cluster. Formal definition Initial valuenoneApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | [ [ filled | open ] | [ dot | circle | double-circle | triangle | sesame ] ] | <string> Examples h2 { text-emphasis-style: sesame; } Specifications Specification Status Comment CSS Text Decoration Module Level 3The definition of 'text-emphasis' in that specification. Candidate Recommendation Initial ...
text-emphasis - CSS: Cascading Style Sheets
ould not specify more than one character in <string>. The UA may truncate or ignore strings consisting of more than one grapheme cluster. <color> Defines the color of the mark. If no color is present, it defaults to currentcolor. ...
text-indent - CSS: Cascading Style Sheets
width. each-line Indentation affects the first line of the block container as well as each line after a forced line break, but does not affect lines after a soft wrap break. hanging Inverts which lines are indented. All lines except the first line will be indented. ...
text-justify - CSS: Cascading Style Sheets
like English or Korean. inter-character The text is justified by adding space between characters (effectively varying letter-spacing), which is most appropriate for languages like Japanese. distribute Exhibits the same behaviour as inter-character; this value is kept for backwards compatibility. Formal definition Initial valueautoApplies toinline-level and table-cell elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | inter-character | inter-word | none Examples <p class="none"><code>text-justify: none</code> --<br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ornare maximus vehicula. Duis nisi velit, dictum id mauris vitae, lobortis pretium quam. Quisque sed nisi pulvinar, consequat justo id, feugiat leo. Cras eu elementum dui.</p> <p...
text-orientation - CSS: Cascading Style Sheets
ed 90? clockwise. sideways-right An alias to sideways that is kept for compatibility purposes. use-glyph-orientation On SVG elements, this keyword leads to use the value of the deprecated SVG properties glyph-orientation-vertical and glyph-orientation-horizontal. Formal definition Initial valuemixedApplies toall elements, except table row groups, rows, column groups, and columnsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax mixed | upright | sideways Examples HTML <p>Lorem ipsum dolet semper quisquam.</p> CSS p { writing-mode: vertical-rl; text-orientation: upright; } Result Specifications Specification Status Comment CSS Writing Modes Module Level 3The definition of 'text-orientation' in that specification. Proposed Recom...
text-overflow - CSS: Cascading Style Sheets
line box with complete transparency at the edge. The argument determines the distance over which the fade effect is applied. The <percentage> is resolved against the width of the line box. Values lower than 0 are clipped to 0. Values greater than the width of the line box are clipped to the width of the line box. ...
text-rendering - CSS: Cascading Style Sheets
text fluidly. For large scale factors, you might see less-than-beautiful text rendering, but the size is what you would expect--neither rounded up nor down to the nearest font size supported by Windows or Linux. Note: WebKit precisely applies the specified value, but Gecko treats the value the same as optimizeLegibility. Formal definition Initial valueautoApplies totext elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | optimizeSpeed | optimizeLegibility | geometricPrecision Examples Automatic application of optimizeLegibility This demonstrates how optimizeLegibility is used by browsers automatically when the font-size is smaller than 20px. HTML <p class="small">LYoWAT - ff fi fl ffl</p> <p class="big">LYoWAT - ff fi fl ffl</p> CSS .small { font: 19...
text-shadow - CSS: Cascading Style Sheets
is placed directly behind the text, although it may be partly visible due to the effect of <blur-radius>. <blur-radius> Optional. This is a <length> value. The higher the value, the bigger the blur; the shadow becomes wider and lighter. If not specified, it defaults to 0. Formal definition Initial valuenoneApplies toall elements. ...
text-size-adjust - CSS: Cascading Style Sheets
cancel a none value previously set with CSS. <percentage> Enables the browser's inflation algorithm, specifying a percentage value with which to increase the font size. ...
text-transform - CSS: Cascading Style Sheets
ically used in ruby. Accessibility concerns Large sections of text set with a text-transform value of uppercase may be difficult for people with cognitive concerns such as Dyslexia to read. MDN Understanding WCAG, Guideline 1.4 explanations W3C Understanding WCAG 2.1 Formal definition Initial valuenoneApplies toall elements. ...
text-underline-offset - CSS: Cascading Style Sheets
nges in the font. For a given application of this property, the offset is constant across the whole box that the underline is applied to, even if there are child elements with different font sizes or vertical alignment. Formal definition Initial valueautoApplies toall elements. It also applies to ::first-letter and ::first-line.InheritedyesPercentagesrefer to the font size of the element itselfComputed valueas specifiedAnimation typeby computed value type Formal syntax auto | <length> | <percentage> Examples <p class="oneline">Here's some text with an offset wavy red underline!</p> <br> <p class="twolines">This text has lines both above and below it. Only the bottom one is offset.</p> p { text-decoration: underline wavy red; text-underline-offset: 1em; } .twolines { text-decoration-color:...
text-underline-position - CSS: Cascading Style Sheets
uto-pos A synonym of auto, which should be used instead. above Forces the line to be above the text. When used with East-Asian text, using the auto keyword will lead to a similar effect. below Forces the line to be below the text. When used with alphabetic text, using the auto keyword will lead to a similar effect. Formal definition Initial valueautoApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax auto | from-font | [ under | [ left | right ] ] Examples A simple example Let's take a couple of simple example paragraphs: <p class="horizontal">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam consectetur ac turpis vel laoreet. Nullam volutpat pharetra lorem, sit amet feugiat tortor volutpat quis. Nam eget sodales quam. Aliqua...
top - CSS: Cascading Style Sheets
Web › CSS › top
t based on the content; or if bottom is also auto, the element is positioned where it should vertically be positioned if it were a static element. for relatively positioned elements, the distance of the element from its normal position is based on the bottom property; or if bottom is also auto, the element is not moved vertically at all. inherit Specifies that the value is the same as the computed value from its parent element (which might not be its containing block). This computed value is then handled as if it were a <length>, <percentage>, or the auto keyword. Formal definition Initial valueautoApplies topositioned elementsInheritednoPercentagesrefer to the height of the containing blockComputed valueif specified as a length, the corresponding absolute length; if specified as a percentage...
touch-action - CSS: Cascading Style Sheets
s. This will prevent people experiencing low vision conditions from being able to read and understand page content. MDN Understanding WCAG, Guideline 1.4 explanations Understanding Success Criterion 1.4.4 | Understanding WCAG 2.0 Formal definition Initial valueautoApplies toall elements except: non-replaced inline elements, table rows, row groups, table columns, and column groupsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax auto | none | [ [ pan-x | pan-left | pan-right ] | [ pan-y | pan-up | pan-down ] | pinch-zoom ] | manipulation Examples Disabling all gestures The most common usage is to disable all gestures on an element (and its non-scrollable descendants) that provides its own dragging and zooming behavior - such as a map or game surface. HTML <div id="m...
transform-box - CSS: Cascading Style Sheets
used as the reference box. If a viewBox attribute is specified for the SVG viewport creating element, the reference box is positioned at the origin of the coordinate system established by the viewBox attribute, and the dimension of the reference box is set to the width and height values of the viewBox attribute. ...
transform-origin - CSS: Cascading Style Sheets
m the user eye the z=0 origin is set. ...
transform-style - CSS: Cascading Style Sheets
style: preserve-3d; /* Global values */ transform-style: inherit; transform-style: initial; transform-style: unset; Values flat Indicates that the children of the element are lying in the plane of the element itself. preserve-3d Indicates that the children of the element should be positioned in the 3D-space. Formal definition Initial valueflatApplies totransformable elementsInheritednoComputed valueas specifiedAnimation typediscreteCreates stacking contextyes Formal syntax flat | preserve-3d Examples Transform style demonstration In this example we have a 3D cube created using transforms. The parent container of the cube faces has transform-style: preserve-3d set on it by default, so it is transformed in the 3D space and you can see it as intended. We also provide a checkbox allowing y...
transform - CSS: Cascading Style Sheets
Web › CSS › transform
-- use it to write a media query that will turn off animations if the user has reduced animation specified in their system preferences. ...
transition-delay - CSS: Cascading Style Sheets
e> values */ transition-delay: 3s; transition-delay: 2s, 4ms; /* Global values */ transition-delay: inherit; transition-delay: initial; transition-delay: unset; Values <time> Denotes the amount of time to wait between a property's value changing and the start of the transition effect. ...
transition-duration - CSS: Cascading Style Sheets
me> denoting the amount of time the transition from the old value of a property to the new value should take. A time of 0s indicates that no transition will happen, that is the switch between the two states will be instantaneous. A negative value for the time renders the declaration invalid. ...
transition-property - CSS: Cascading Style Sheets
perty: inherit; transition-property: initial; transition-property: unset; Values none No properties will transition. all All properties that can transition will. <custom-ident> A string identifying the property to which a transition effect should be applied when its value changes. Formal definition Initial valueallApplies toall elements, ::before and ::after pseudo-elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax none | <single-transition-property>#where <single-transition-property> = all | <custom-ident> Examples There are several examples of CSS transitions included in the main CSS transitions article. Specifications Specification Status Comment CSS TransitionsThe definition of 'transition-property' in that specification. ...
transition-timing-function - CSS: Cascading Style Sheets
tibular disorders, epilepsy, and migraine and Scotopic sensitivity. Consider providing a mechanism for pausing or disabling animation, as well as using the Reduced Motion Media Query to create a complimentary experience for users who have expressed a preference for no animated experiences. ...
transition - CSS: Cascading Style Sheets
s of property values aren't the same length. In short, extra transition descriptions beyond the number of properties actually being animated are ignored. ...
unicode-bidi - CSS: Cascading Style Sheets
tate or the value of the direction property. The directionality is calculated using the P2 and P3 rules of the Unicode Bidirectional Algorithm. This value allows the display of data that is already formatted using a tool following the Unicode Bidirectional Algorithm. ...
user-select - CSS: Cascading Style Sheets
the highest ancestor with this value will be selected. contain Enables selection to start within the element; however, the selection will be contained by the bounds of that element. element (IE-specific alias) Same as contain. Supported only in Internet Explorer. Note: CSS UI 4 renames user-select: element to contain. ...
vertical-align - CSS: Cascading Style Sheets
the top of the row. middle Centers the padding box of the cell within the row. bottom Aligns the bottom padding edge of the cell with the bottom of the row. Negative values are allowed. Formal definition Initial valuebaselineApplies toinline-level and table-cell elements. ...
visibility - CSS: Cascading Style Sheets
rect in some modern browsers. It may not be correctly treated like visibility: hidden on elements other than table rows and columns. visibility: collapse may change the layout of a table if the table has nested tables within the cells that are collapsed, unless visibility: visible is specified explicitly on nested tables. Formal definition Initial valuevisibleApplies toall elementsInheritedyesComputed valueas specifiedAnimation typea visibility Formal syntax visible | hidden | collapse Examples Basic example HTML <p class="visible">The first paragraph is visible.</p> <p class="not-visible">The second paragraph is NOT visible.</p> <p class="visible">The third paragraph is visible. Notice the second paragraph is still occupying space.</p> CSS .visible { visibility: visible; } .not-visible ...
white-space - CSS: Cascading Style Sheets
e Wrap Remove nowrap Collapse Collapse No wrap Remove pre Preserve Preserve No wrap Preserve pre-wrap Preserve Preserve Wrap Hang pre-line Preserve Collapse Wrap Remove break-spaces Preserve Preserve Wrap Wrap Formal definition Initial valuenormalApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax normal | pre | nowrap | pre-wrap | pre-line | break-spaces Examples Basic example code { white-space: pre; } Line breaks inside <pre> elements pre { word-wrap: break-word; /* IE 5.5-7 */ white-space: pre-wrap; /* Modern browsers */ } In action HTML <div id="css-code" class="box"> p { white-space: <select> <option>n...
widows - CSS: Cascading Style Sheets
Web › CSS › widows
In typography, a widow is the last line of a paragraph that appears alone at the top of a page. (The paragraph is continued from a prior page.) Syntax Values <integer> The minimum number of lines that can stay by themselves at the top of a new fragment after a fragmentation break. The value must be positive. Formal definition Initial value2Applies toblock container elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax <integer> Examples Controlling column widows HTML <div> <p>This is the first paragraph containing some text.</p> <p>This is the second paragraph containing some more text than the first one. It is used to demonstrate how widows work.</p> <p>This is the third paragraph. It has a little bit more text than the first one.</p> </div> CSS d...
width - CSS: Cascading Style Sheets
Web › CSS › width
ren't truncated and don't obscure other content when the page is zoomed to increase text size. ...
will-change - CSS: Cascading Style Sheets
rowser prepare the transition ahead of time and allow for snappy transitions between the pages as soon as the key is pressed. But use caution with the will-change property directly in stylesheets. It may cause the browser to keep the optimization in memory for much longer than it is needed. .slide { will-change: transform; } Formal definition Initial valueautoApplies toall elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax auto | <animateable-feature>#where <animateable-feature> = scroll-position | contents | <custom-ident> Examples Via script This is an example showing how to apply the will-change property through scripting, which is probably what you should be doing in most cases. var el = document.getElementById('element'); // Set will-change when the elemen...
word-break - CSS: Cascading Style Sheets
e of the overflow-wrap property. Note: In contrast to word-break: break-word and overflow-wrap: break-word (see overflow-wrap), word-break: break-all will create a break at the exact place where text would otherwise overflow its container (even if putting an entire word on its own line would negate the need for a break). Formal definition Initial valuenormalApplies toall elementsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax normal | break-all | keep-all | break-word Examples HTML <p>1. <code>word-break: normal</code></p> <p class="normal narrow">This is a long and Honorificabilitudinitatibus califragilisticexpialidocious Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu ???????????????????????????????????</p> <p>2. <code>word...
word-spacing - CSS: Cascading Style Sheets
s. There is no one value that can ensure all font families automatically maintain their legibility. MDN Understanding WCAG, Guideline 1.4 explanations Understanding Success Criterion 1.4.8 | W3C Understanding WCAG 2.0 Formal definition Initial valuenormalApplies toall elements. It also applies to ::first-letter and ::first-line.InheritedyesPercentagesrefer to the width of the affected glyphComputed valuean optimum, minimum, and maximum value, each consisting of either an absolute length, a percentage, or the keyword normalAnimation typea length Formal syntax normal | <length-percentage>where <length-percentage> = <length> | <percentage> Specifications Specification Status Comment CSS Text Module Level 3The definition of 'word-spacing' in that specification. Work...
writing-mode - CSS: Cascading Style Sheets
tb Deprecated except for SVG1 documents. For CSS, use vertical-lr instead. tb-lr Deprecated except for SVG1 documents. For CSS, use vertical-lr instead. tb-rl Deprecated except for SVG1 documents. For CSS, use vertical-rl instead. Formal definition Initial valuehorizontal-tbApplies toall elements except table row groups, table column groups, table rows, and table columnsInheritedyesComputed valueas specifiedAnimation typediscrete Formal syntax horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr Examples Using multiple writing modes This example demonstrates all of the writing modes, showing each with text in various languages. HTML The HTML is a <table> with each writing mode in a row with a column showing text in various scripts using that writing mode. <table> ...
z-index - CSS: Cascading Style Sheets
Web › CSS › z-index
e same as its parent's box. <integer> This <integer> is the stack level of the generated box in the current stacking context. The box also establishes a local stacking context in which its stack level is 0. This means that the z-indexes of descendants are not compared to the z-indexes of elements outside this element. ...
zoom - CSS: Cascading Style Sheets
Web › CSS › zoom
ly supported by WebKit (and possibly Blink). <percentage> Zoom factor. 100% is equivalent to normal. Values larger than 100% zoom in. Values smaller than 100% zoom out. <number> Zoom factor. Equivalent to the corresponding percentage (1.0 = 100% = normal). Values larger than 1.0 zoom in. Values smaller than 1.0 zoom out. ...
getter - JavaScript
es and send us a pull request. Syntax {get prop() { ... } } {get [expression]() { ... } } Parameters prop The name of the property to bind to the given function. expression Starting with ECMAScript 2015, you can also use expressions for a computed property name to bind to the given function. Description Sometimes it is desirable to allow access to a property that returns a dynamically computed value, or you may want to reflect the status of an internal variable without requiring the use of explicit method calls. In JavaScript, this can be accomplished with the use of a getter. It is not possible to simultaneously have a getter bound to a property and have that property actually hold a value, although it is possible to use a getter and a setter in conjunction to create a type of pseudo-prope...
JSON.parse() - JavaScript
N.parse"); }; } Examples Using JSON.parse() JSON.parse('{}'); // {} JSON.parse('true'); // true JSON.parse('"foo"'); // "foo" JSON.parse('[1, 5, "false"]'); // [1, 5, "false"] JSON.parse('null'); // null Using the reviver parameter If a reviver is specified, the value computed by parsing is transformed before being returned. Specifically, the computed value and all its properties (beginning with the most nested properties and proceeding to the original value itself) are individually run through the reviver. Then it is called, with the object containing the property being processed as this, and with the property name as a string, and the property value as arguments. If the reviver function returns undefined (or returns no value, for example, if execu...
alignment-baseline - SVG: Scalable Vector Graphics
The alignment-baseline attribute specifies how an object is aligned with respect to its parent. This property specifies which baseline of this element is to be aligned with the corresponding baseline of the parent. For example, this allows alphabetic baselines in Roman text to stay aligned across font size changes. It defaults to the baseline with the same name as the computed value of the alignment-baseline property. Note: As a presentation attribute alignment-baseline can be used as a CSS property. As a presentation attribute, it can be applied to any element but it has effect only on the following four elements: <tspan>, <tref>, <altGlyph>, and <textPath> Usage notes Value auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic...
dominant-baseline - SVG: Scalable Vector Graphics
If the writing-mode is horizontal, then the value of the dominant-baseline component is alphabetic. Otherwise, if the writing-mode is vertical, then the value of the dominant-baseline component is central. If this property occurs on a <tspan>, <tref>, <altGlyph>, or <textPath> element, then the dominant-baseline and the baseline-table compo...
pathLength - SVG: Scalable Vector Graphics
This can affect the actual rendered lengths of paths; including text paths, animation paths, and various stroke operations. Basically, all computations that require the length of the path. ...
<feFlood> - SVG: Scalable Vector Graphics
Web › SVG › Element › feFlood
Clarified value of flood-opacity property. Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<feFlood>' in that specification. Recommendation Initial definition ...